diff --git a/libevmjit-cpp/Env.cpp b/libevmjit-cpp/Env.cpp index 9fa15735ef..6320aa2228 100644 --- a/libevmjit-cpp/Env.cpp +++ b/libevmjit-cpp/Env.cpp @@ -44,7 +44,7 @@ extern "C" EXPORT void env_blockhash(ExtVMFace* _env, i256* _number, h256* o_hash) { - *o_hash = _env->prevhash(llvm2eth(*_number)); + *o_hash = _env->blockhash(llvm2eth(*_number)); } EXPORT void env_create(ExtVMFace* _env, i256* io_gas, i256* _endowment, byte* _initBeg, uint64_t _initSize, h256* o_address)