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

Update Foundry vm.snapshot() / vm.revertTo() usage in tests #434

Open
amusingaxl opened this issue Oct 17, 2024 · 0 comments
Open

Update Foundry vm.snapshot() / vm.revertTo() usage in tests #434

amusingaxl opened this issue Oct 17, 2024 · 0 comments
Assignees

Comments

@amusingaxl
Copy link
Contributor

With the latest version of Foundry (forge 0.2.0 (cc8e430 2024-10-16T00:22:08.572482504Z)), we currently get the following warning:

Warning: the following cheatcode(s) are deprecated and will be removed in future versions:
snapshot(): replaced by `snapshotState`
revertTo(uint256): replaced by `revertToState`

We should probably start using the new terminology sooner than later. It seems like a pretty straightforward change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant