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

vm.snapshot cannot be called subsequently after restoring to earlier history (not persisted) #373

Open
0xalpharush opened this issue Jun 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@0xalpharush
Copy link
Contributor

The implementation of vm.snapshot uses go-ethereum's revertToSnapshot which will delete "future" states after reverting e.g. a history of [1,2,3] will become [1] if revertToSnapshot(1) is called so it's not possible to call revertToSnapshot(3) following. This deviates from how Foundry's implementation works (see foundry-rs/foundry#5487).

@0xalpharush 0xalpharush added the bug Something isn't working label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant