From ee97ab1f957918defafb9bc38dd51adf222ddfec Mon Sep 17 00:00:00 2001 From: Zhang Zhuo Date: Wed, 27 Sep 2023 01:40:56 +0800 Subject: [PATCH] fix: parse "TLOAD/TSTORE" correctly in trace (#1624) ### Description 0xb3 / 0xb4 are rendered as "TLOAD/TSTORE" in geth trace json. ### Issue Link [_link issue here_] ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update Co-authored-by: Chih Cheng Liang --- 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! {