Skip to content

Commit

Permalink
fix: add keccak256 as alias for sha3 opcode
Browse files Browse the repository at this point in the history
the opcode was renamed in geth and erigon, but still called sha3 in reth
ethereum/go-ethereum#23976
erigontech/erigon#5890
  • Loading branch information
banteg committed Aug 4, 2023
1 parent c1396c4 commit c33ad5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm_trace/vmtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# fmt: off
POP_OPCODES = {
1: ["EXTCODEHASH", "ISZERO", "NOT", "BALANCE", "CALLDATALOAD", "EXTCODESIZE", "BLOCKHASH", "POP", "MLOAD", "SLOAD", "JUMP", "SELFDESTRUCT"], # noqa: E501
2: ["SHL", "SHR", "SAR", "REVERT", "ADD", "MUL", "SUB", "DIV", "SDIV", "MOD", "SMOD", "EXP", "SIGNEXTEND", "LT", "GT", "SLT", "SGT", "EQ", "AND", "XOR", "OR", "BYTE", "SHA3", "MSTORE", "MSTORE8", "SSTORE", "JUMPI", "RETURN"], # noqa: E501
2: ["SHL", "SHR", "SAR", "REVERT", "ADD", "MUL", "SUB", "DIV", "SDIV", "MOD", "SMOD", "EXP", "SIGNEXTEND", "LT", "GT", "SLT", "SGT", "EQ", "AND", "XOR", "OR", "BYTE", "SHA3", "KECCAK256", "MSTORE", "MSTORE8", "SSTORE", "JUMPI", "RETURN"], # noqa: E501
3: ["RETURNDATACOPY", "ADDMOD", "MULMOD", "CALLDATACOPY", "CODECOPY", "CREATE"],
4: ["CREATE2", "EXTCODECOPY"],
6: ["STATICCALL", "DELEGATECALL"],
Expand Down

0 comments on commit c33ad5a

Please sign in to comment.