Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse "TLOAD/TSTORE" correctly in trace #1624

Merged
merged 2 commits into from Sep 26, 2023
Merged

Conversation

lispc
Copy link
Collaborator

@lispc lispc commented Sep 22, 2023

Description

0xb3 / 0xb4 are rendered as "TLOAD/TSTORE" in geth trace json.

Issue Link

[link issue here]

Type of change

  • 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

@github-actions github-actions bot added the crate-eth-types Issues related to the eth-types workspace member label Sep 22, 2023
Copy link
Collaborator

@han0110 han0110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like TLOAD/TSTORE are updated to 0x5c and 0x5d

See ethereum/go-ethereum#27613 and https://eips.ethereum.org/EIPS/eip-1153

Also perhaps we could handle MCOPY (0x5e) and BLOBBASEFEE (0x4a) in the same way in this PR.

@lispc
Copy link
Collaborator Author

lispc commented Sep 25, 2023

the geth inside geth-utils is v1.11.5, earlier than ethereum/go-ethereum#27613.

So either temporarily keep using 0xb3/0xb4, or upgrade geth and change TSTORE/TLOAD opcode.

Copy link
Collaborator

@han0110 han0110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, make sense!

Copy link
Collaborator

@ChihChengLiang ChihChengLiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix correspond to the bugs like badOpcodes_d49_g0_v0 in the Ethereum tests?

It is intended to fix the following error message, right?

Exception(expected:false, found:"SerdeError(Error(\"OpcodeParsing(\\\"TLOAD\\\")\", line: 108, column: 21))")

@ChihChengLiang ChihChengLiang added this pull request to the merge queue Sep 26, 2023
Merged via the queue into main with commit ee97ab1 Sep 26, 2023
13 checks passed
@ChihChengLiang ChihChengLiang deleted the fix/trace-parse branch September 26, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate-eth-types Issues related to the eth-types workspace member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants