mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8051 from ethereum/yul-interp-log
Fix tracing LOG instruction in the Yul Ewasm interpreter
This commit is contained in:
commit
b74f357c5e
@ -248,7 +248,10 @@ u256 EWasmBuiltinInterpreter::evalBuiltin(YulString _fun, vector<u256> const& _a
|
|||||||
return writeU128(arg[0], m_state.gasprice);
|
return writeU128(arg[0], m_state.gasprice);
|
||||||
else if (_fun == "eth.log"_yulstring)
|
else if (_fun == "eth.log"_yulstring)
|
||||||
{
|
{
|
||||||
logTrace(eth::Instruction::LOG0, {});
|
uint64_t numberOfTopics = arg[2];
|
||||||
|
if (numberOfTopics > 4)
|
||||||
|
throw ExplicitlyTerminated();
|
||||||
|
logTrace(eth::logInstruction(numberOfTopics), {});
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (_fun == "eth.getBlockNumber"_yulstring)
|
else if (_fun == "eth.getBlockNumber"_yulstring)
|
||||||
|
Loading…
Reference in New Issue
Block a user