Skip to content

feat: add additional snapshot cheatcodes #6548

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
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

@mattsse mattsse requested a review from Evalir December 10, 2023 11:24
@mattsse mattsse merged commit 120ae66 into foundry-rs:master Dec 11, 2023
@maa105
Copy link

maa105 commented Dec 22, 2023

Awesome thanks a million!

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

Successfully merging this pull request may close these issues.

4 participants