aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-22 21:22:21 +0800
committerobscuren <geffobscura@gmail.com>2014-10-22 21:22:21 +0800
commitb5beb1aac11af92bfe0f3ed7560b9eb08495ed09 (patch)
tree3f3fba73bca00f8c0a6c9f8bc29bca8ba36e991d /vm/vm.go
parent27cb0750c1deaed040876abdab1386a6687d7999 (diff)
downloaddexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.gz
dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.tar.zst
dexon-b5beb1aac11af92bfe0f3ed7560b9eb08495ed09.zip
added a transfer method to vm env
Diffstat (limited to 'vm/vm.go')
-rw-r--r--vm/vm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 72d4f7131..b5c7c0e21 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -692,7 +692,7 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
receiver := self.env.State().GetOrNewStateObject(stack.Pop().Bytes())
- receiver.AddAmount(closure.object.Balance)
+ receiver.AddAmount(closure.object.Balance())
closure.object.MarkForDeletion()