aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_test.go
diff options
context:
space:
mode:
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)) {