diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-21 06:17:53 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-21 06:17:53 +0800 |
commit | 7705b23f248156878d00c301fbbadafedaf7e3d2 (patch) | |
tree | 11f3373c598106b9f6f689370079a9b220a42e34 /ethchain/closure.go | |
parent | f3d27bf5d878120346f8cdd0744e7f1f8e1ee631 (diff) | |
download | go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.gz go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.bz2 go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.lz go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.xz go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.tar.zst go-tangerine-7705b23f248156878d00c301fbbadafedaf7e3d2.zip |
Removed caller from tx and added "callership" to account.
Transactions can no longer serve as callers. Accounts are now the
initial callee of closures. Transactions now serve as transport to call
closures.
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r-- | ethchain/closure.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go index 204fbce06..9453ce22c 100644 --- a/ethchain/closure.go +++ b/ethchain/closure.go @@ -26,7 +26,7 @@ type Closure struct { gas *big.Int val *big.Int - args []byte + Args []byte } // Create a new closure for the given data items @@ -45,7 +45,7 @@ func (c *Closure) GetMem(x int64) *ethutil.Value { } func (c *Closure) Call(vm *Vm, args []byte) []byte { - c.args = args + c.Args = args return vm.RunClosure(c) } |