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

feat: add additional snapshot cheatcodes #6548

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Dec 8, 2023

ref #6411

since we're persisting snapshots on revertTo we have unbounded memory growth.
We want to keep them for convenience, so we need additional cheatcodes to handle cleanup:

  • revertToAndDelete (I picked this one over overloading revertTo, not sure what would be the best UX, but we could add an overloaded function as well (id, bool))
  • deleteSnapshot
  • deleteSnapshots

FYI @maa105 @karlb

Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

smol nit

crates/cheatcodes/spec/src/vm.rs Show resolved Hide resolved
@mattsse mattsse requested a review from Evalir December 10, 2023 11:24
@mattsse mattsse merged commit 120ae66 into foundry-rs:master Dec 11, 2023
19 checks passed
@maa105
Copy link

maa105 commented Dec 22, 2023

Awesome thanks a million!

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.

4 participants