aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-27 01:39:05 +0800
committerobscuren <geffobscura@gmail.com>2015-02-27 01:39:05 +0800
commit37e6870f64437a212fde383ab1538ad1e7e2acd9 (patch)
treefbcd0c11c1ca9931a6a8f6c74ae02340cb097bb2 /vm/vm.go
parenta1c830cd3c53bce7748d97e3f99fe6a90d526adb (diff)
downloaddexon-37e6870f64437a212fde383ab1538ad1e7e2acd9.tar.gz
dexon-37e6870f64437a212fde383ab1538ad1e7e2acd9.tar.zst
dexon-37e6870f64437a212fde383ab1538ad1e7e2acd9.zip
wip
Diffstat (limited to 'vm/vm.go')
-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