From 15f5172733bff1ce6dee128a5a1f8444186b9daf Mon Sep 17 00:00:00 2001 From: Zhang Zhuo Date: Fri, 22 Sep 2023 15:09:01 +0800 Subject: [PATCH] fix: parse "TLOAD/TSTORE" correctly in trace --- eth-types/src/evm_types/opcode_ids.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth-types/src/evm_types/opcode_ids.rs b/eth-types/src/evm_types/opcode_ids.rs index 538c8906f6..1a5b7afd9c 100644 --- a/eth-types/src/evm_types/opcode_ids.rs +++ b/eth-types/src/evm_types/opcode_ids.rs @@ -1206,6 +1206,8 @@ impl FromStr for OpcodeId { "SELFDESTRUCT" => OpcodeId::SELFDESTRUCT, "CHAINID" => OpcodeId::CHAINID, "BASEFEE" => OpcodeId::BASEFEE, + "TLOAD" => OpcodeId::INVALID(0xb3), + "TSTORE" => OpcodeId::INVALID(0xb4), _ => { // Parse an invalid opcode value as reported by geth lazy_static! {