stateManager.setStateRoot
doesn't clear the _storageTries
cache.
#444
Labels
stateManager.setStateRoot
doesn't clear the _storageTries
cache.
#444
#417 was about the
_cache
which was fixed in #420. This issue is about_storageTries
https://github.com/ethereumjs/ethereumjs-vm/blob/c842d101108d6acdd9ca82ab1de274ba3b16e5b2/lib/state/stateManager.js#L38which I think should also get cleared when the stateRoot is set.
We ran into the issue with Ganache when a user creates a snapshot (which just means we record the block number at the time
snapshot
was called), then modifies contract storage, reverts the snapshot (we just set the state root back to the way it was when the snapshot was created), then modifies contract storage again.PR and tests to follow.
The text was updated successfully, but these errors were encountered: