mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix returning code size in Yul Ewasm interpreter
This commit is contained in:
parent
b74f357c5e
commit
9f1e8086bb
@ -215,7 +215,7 @@ u256 EWasmBuiltinInterpreter::evalBuiltin(YulString _fun, vector<u256> const& _a
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (_fun == "eth.getCodeSize"_yulstring)
|
else if (_fun == "eth.getCodeSize"_yulstring)
|
||||||
return writeU256(arg[0], m_state.code.size());
|
return m_state.code.size();
|
||||||
else if (_fun == "eth.getBlockCoinbase"_yulstring)
|
else if (_fun == "eth.getBlockCoinbase"_yulstring)
|
||||||
return writeAddress(arg[0], m_state.coinbase);
|
return writeAddress(arg[0], m_state.coinbase);
|
||||||
else if (_fun == "eth.create"_yulstring)
|
else if (_fun == "eth.create"_yulstring)
|
||||||
|
Loading…
Reference in New Issue
Block a user