aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/vm.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/vm.go b/vm/vm.go
index f9efeed96..ed3379a44 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -54,6 +54,8 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
err = fmt.Errorf("%v", r)
+ } else {
+ fmt.Println(me.(*state.StateObject).Storage())
}
}()
}
@@ -727,7 +729,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
self.Printf(" => (%x) %v", receiver.Address()[:4], balance)
- receiver.AddAmount(balance)
+ receiver.AddBalance(balance)
statedb.Delete(context.Address())
fallthrough