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

eth/tracers/logger: return revert reason #31013

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reds
Copy link
Contributor

@reds reds commented Jan 9, 2025

The logger tracer is dropping data from a revert.
Because of error wrapping the == comparison is not sufficient. errors.Is is needed.

The logger tracer is dropping data from a revert.
Because of error wrapping the == comparison is not sufficient.
errors.Is is needed.
@reds reds requested a review from s1na as a code owner January 9, 2025 20:51
@rjl493456442
Copy link
Member

Can you provide an example or a test case that proves the error handling does matter?

@reds
Copy link
Contributor Author

reds commented Jan 10, 2025

Added a test. Wrapping the error, in this case in a vm.VMError, gives a new error address. The direct comparison then fails. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants