diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-01 02:03:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-01 02:03:31 +0800 |
commit | ed276cd7c241749a9cf8add4e2fae3d3608a7ea4 (patch) | |
tree | 40416177aeac9874e0eecdb7194db9bc13e39174 /ethchain/state_test.go | |
parent | 82272ee08a7d72be1cc0947b6a0e8096a0353362 (diff) | |
download | go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.gz go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.bz2 go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.lz go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.xz go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.zst go-tangerine-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.zip |
Added Paranoia check for VM execution
Diffstat (limited to 'ethchain/state_test.go')
-rw-r--r-- | ethchain/state_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/state_test.go b/ethchain/state_test.go index 503bdddb4..95be0f373 100644 --- a/ethchain/state_test.go +++ b/ethchain/state_test.go @@ -16,12 +16,12 @@ func TestSnapshot(t *testing.T) { state.UpdateStateObject(stateObject) stateObject.SetStorage(ethutil.Big("0"), ethutil.NewValue(42)) - snapshot := state.Snapshot() + snapshot := state.Copy() stateObject = state.GetStateObject([]byte("aa")) stateObject.SetStorage(ethutil.Big("0"), ethutil.NewValue(43)) - state.Revert(snapshot) + state.Set(snapshot) stateObject = state.GetStateObject([]byte("aa")) if !stateObject.GetStorage(ethutil.Big("0")).Cmp(ethutil.NewValue(42)) { |