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

improvement: add return value to revert #343

Merged
merged 2 commits into from Jan 26, 2023

Conversation

Wodann
Copy link
Contributor

@Wodann Wodann commented Jan 25, 2023

The EVM allows you to call the revert opcode with an error message, which needs to be returned as the return value.

Additionally, I added the logs that are collected up to the point revert was called. This allows debugging tools built on top of revm without adding additional cost - as we're just bubbling up the data.

@rakita rakita merged commit 72355f4 into bluealloy:main Jan 26, 2023
@Wodann Wodann deleted the improvement/revert branch January 26, 2023 14:03
@Wodann Wodann changed the title improvement: add logs & return value to revert improvement: add return value to revert Jan 27, 2023
@Wodann Wodann restored the improvement/revert branch August 30, 2023 16:23
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.

None yet

2 participants