State changes made after a snapshot creation reappear after reversal.
This is similiar to closed issue #603, which was fixed in 6.2.4, still fixed in 6.2.5, reappeared in 6.3.0
After reverting a snapshot, the EVM should contain no state changes that were made after the snapshot creation.
State changes survive snapshot reversal.
uint x = 2 and a function inc() which will increase x by 1.inc() x (will return 3)x should become 2)x (will correctly return 2)inc()x: this will return 4 instead of the expected 3One could repeat steps 5...8. After snapshet reversal everything seems fine, but after the inc() transaction the state seems to be as if no snapshot reverse ever happened.
uname -srm
FreeBSD 12.0-RELEASE amd64
node --version
v11.8.0
npm --version
6.7.0
truffle version
Truffle v4.1.15 (core: 4.1.15)
Solidity v0.4.25 (solc-js)
ganache-cli --version
Ganache CLI v6.3.0 (ganache-core: 2.4.0)
Test repo: https://github.com/outofgas/ganache-snapshot-issue
Also dealing with this. 6.2.5 works fine
@angus-hamill Thanks for updating! Is it possible that you have a copy of your repo available somewhere? Or if you have a chance, could you post an MVT demonstrating the issue? I'm investigating this with @davidmurdoch and we think it would help to see another example.
Would it be possible to publish a new version with this fixed? Even a prerelease version would be helpful.
@olaf89 working on the release right now!
Problem is fixed in Ganache CLI v6.4.1
Most helpful comment
Problem is fixed in Ganache CLI v6.4.1