mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
made _ext a mandatory arg of Runtime::run()
This commit is contained in:
parent
aa7fc79206
commit
89e6d2f3e6
3 changed files with 3 additions and 3 deletions
|
|
@ -172,7 +172,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
auto engine = eth::jit::ExecutionEngine();
|
||||
u256 gas = initialGas;
|
||||
auto result = engine.run(std::move(module), gas, options.count("show-logs") > 0);
|
||||
auto result = engine.run(std::move(module), gas, options.count("show-logs") > 0, nullptr);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class ExecutionEngine
|
|||
public:
|
||||
ExecutionEngine();
|
||||
|
||||
int run(std::unique_ptr<llvm::Module> module, u256& _gas, bool _outputLogs, ExtVMFace* _ext = nullptr);
|
||||
int run(std::unique_ptr<llvm::Module> module, u256& _gas, bool _outputLogs, ExtVMFace* _ext);
|
||||
|
||||
bytes returnData;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ bytesConstRef VM::go(ExtVMFace& _ext, OnOpFunc const&, uint64_t)
|
|||
auto module = Compiler(defaultOptions).compile(_ext.code);
|
||||
|
||||
ExecutionEngine engine;
|
||||
auto exitCode = engine.run(std::move(module), m_gas, &_ext);
|
||||
auto exitCode = engine.run(std::move(module), m_gas, false, &_ext);
|
||||
|
||||
switch (static_cast<ReturnCode>(exitCode))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue