vm.snapshot
cannot be called subsequently after restoring to earlier history (not persisted)
#373
Labels
bug
Something isn't working
The implementation of
vm.snapshot
uses go-ethereum'srevertToSnapshot
which will delete "future" states after reverting e.g. a history of [1,2,3] will become [1] ifrevertToSnapshot(1)
is called so it's not possible to callrevertToSnapshot(3)
following. This deviates from how Foundry's implementation works (see foundry-rs/foundry#5487).The text was updated successfully, but these errors were encountered: