aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-01 02:03:31 +0800
committerobscuren <geffobscura@gmail.com>2014-07-01 02:03:31 +0800
commited276cd7c241749a9cf8add4e2fae3d3608a7ea4 (patch)
tree40416177aeac9874e0eecdb7194db9bc13e39174 /ethchain/state_test.go
parent82272ee08a7d72be1cc0947b6a0e8096a0353362 (diff)
downloaddexon-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.gz
dexon-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.tar.zst
dexon-ed276cd7c241749a9cf8add4e2fae3d3608a7ea4.zip
Added Paranoia check for VM execution
Diffstat (limited to 'ethchain/state_test.go')
-rw-r--r--ethchain/state_test.go4
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)) {