-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
eth/tracers: Add support for REVERT/SELFDESTRUCT in evmdis_tracer #24016
Conversation
The modified JS code needs to be also embedded into go. I tried to do this but didn't have write permissions to the PR. You can do it by: go install github.com/kevinburke/go-bindata/go-bindata@latest
go generate ./eth/tracers/js/internal/tracers |
Thanks, regenerated! @s1na added you to the repo, it may be handy in the future too. |
@@ -71,7 +71,7 @@ | |||
opinfo["ops"] = []; | |||
this.stack.push(opinfo); | |||
break; | |||
case "RETURN": | |||
case "RETURN": case "REVERT": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tracer is also using SUICIDE
, as opposed to SELFDESTRUCT
-- I think this tracer is kind of bitrotted. Also, it was written to be used along with disasm
(https://github.com/Arachnid/evmdis ) which hasn't been updated since 2018.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was going to submit a PR renaming SUICIDE in multiple places, but decided to put a stop to creating new PRs for now 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this instance of suicide here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…thereum#24016) * eth/tracers: Add support for REVERT in evmdis_tracer * evm/tracers: Fix evmdis_tracer to use SELFDESTRUCT instead of SUICIDE * eth/tracers: Regenerate tracer library
No description provided.