From c33ad5ac0eb348fa83875a811f5fd3d536aa2b3c Mon Sep 17 00:00:00 2001 From: banteg <4562643+banteg@users.noreply.github.com> Date: Fri, 4 Aug 2023 23:27:35 +0400 Subject: [PATCH] fix: add keccak256 as alias for sha3 opcode the opcode was renamed in geth and erigon, but still called sha3 in reth https://github.com/ethereum/go-ethereum/pull/23976 https://github.com/ledgerwatch/erigon/pull/5890 --- evm_trace/vmtrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm_trace/vmtrace.py b/evm_trace/vmtrace.py index bad1832..01207f2 100644 --- a/evm_trace/vmtrace.py +++ b/evm_trace/vmtrace.py @@ -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"],