aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r--ethchain/vm.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go
index 9be38fcc1..d8254998e 100644
--- a/ethchain/vm.go
+++ b/ethchain/vm.go
@@ -450,7 +450,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
} else {
stack.Push(ethutil.BigD(addr))
- vm.state.SetStateObject(contract)
+ vm.state.UpdateStateObject(contract)
}
case oCALL:
require(7)
@@ -499,7 +499,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
stack.Push(ethutil.BigTrue)
}
- vm.state.SetStateObject(contract)
+ vm.state.UpdateStateObject(contract)
mem.Set(retOffset.Int64(), retSize.Int64(), ret)
} else {
@@ -517,7 +517,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) (ret []byte, err erro
receiver := vm.state.GetAccount(stack.Pop().Bytes())
receiver.AddAmount(closure.object.Amount)
- vm.state.SetStateObject(receiver)
+ vm.state.UpdateStateObject(receiver)
closure.object.state.Purge()