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 account creation reversion in decoder processing #480

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

Nashtare
Copy link
Collaborator

@Nashtare Nashtare commented Aug 8, 2024

We need to force inclusion of non-yet existing accounts in our block witness payloads so that the prover can access their position when creating them.
However, the decoder isn't currently checking whether the dummy account we're inserting still exists after txn execution, which may not be the case if the txn reverted.

This adds the check, and also adds a payload from a dev chain that was previously failing without this fix.

@Nashtare Nashtare added the bug Something isn't working label Aug 8, 2024
@Nashtare Nashtare added this to the Testing and Validation milestone Aug 8, 2024
@Nashtare Nashtare self-assigned this Aug 8, 2024
@Nashtare Nashtare requested a review from muursh as a code owner August 8, 2024 18:31
@github-actions github-actions bot added the crate: trace_decoder Anything related to the trace_decoder crate. label Aug 8, 2024
@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label Aug 8, 2024
Copy link
Contributor

@LindaGuiga LindaGuiga left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Nashtare Nashtare merged commit cf222f0 into develop Aug 9, 2024
15 checks passed
@Nashtare Nashtare deleted the fix/revert_account_creation branch August 9, 2024 18:13
atanmarko pushed a commit that referenced this pull request Aug 14, 2024
* Fix account creation reversion in decoder processing

* Also prune storage if account is removed

* Handle all reverts cases together

* Pacify mighty clippy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crate: evm_arithmetization Anything related to the evm_arithmetization crate. crate: trace_decoder Anything related to the trace_decoder crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants