Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix: parse "TLOAD/TSTORE" correctly in trace (#1624)
Browse files Browse the repository at this point in the history
### 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 <chihchengliang@gmail.com>
  • Loading branch information
lispc and ChihChengLiang authored Sep 26, 2023
1 parent b573265 commit ee97ab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth-types/src/evm_types/opcode_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down

0 comments on commit ee97ab1

Please sign in to comment.