mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix tracing LOG instruction in the Yul Ewasm interpreter
This commit is contained in:
parent
9a1cc027ce
commit
7d60cc1729
@ -248,7 +248,10 @@ u256 EWasmBuiltinInterpreter::evalBuiltin(YulString _fun, vector<u256> const& _a
|
||||
return writeU128(arg[0], m_state.gasprice);
|
||||
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;
|
||||
}
|
||||
else if (_fun == "eth.getBlockNumber"_yulstring)
|
||||
|
Loading…
Reference in New Issue
Block a user