Skip to content

fix(forge): record snapshot failures correctly #3087

New issue

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

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

Already on GitHub? # to your account

Merged

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Sep 5, 2022

Motivation

Closes #3055

there were some changes in revm state recording, so we need to check the JournaledState's present value of the slot that contains the failed variable when we revert a snapshot to record if there was a failure in a reverted snapshot

Solution

@mattsse mattsse force-pushed the matt/record-snapshot-failures-correctly branch from e87e56d to 4f3e4c2 Compare September 5, 2022 15:14
@mattsse mattsse force-pushed the matt/record-snapshot-failures-correctly branch from 4f3e4c2 to 709ff80 Compare September 5, 2022 16:12
@mattsse mattsse added T-bug Type: bug A-cheatcodes Area: cheatcodes labels Sep 5, 2022
@gakonst
Copy link
Member

gakonst commented Sep 5, 2022

lgtm pending conflict fix

@onbjerg onbjerg force-pushed the matt/record-snapshot-failures-correctly branch from 709ff80 to 923a8f4 Compare September 5, 2022 20:29
@onbjerg
Copy link
Collaborator

onbjerg commented Sep 5, 2022

rebased, waiting for ci

@mattsse mattsse force-pushed the matt/record-snapshot-failures-correctly branch from 923a8f4 to b7edd1c Compare September 5, 2022 21:23
@mattsse mattsse merged commit 014f7c4 into foundry-rs:master Sep 5, 2022
iFrostizz pushed a commit to iFrostizz/foundry that referenced this pull request Nov 9, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-cheatcodes Area: cheatcodes T-bug Type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: snapshot/revertTo causes tests to pass unexpectedly
3 participants