diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-09 20:08:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-09 20:08:18 +0800 |
commit | c0a030ef0a3ce8342fda2a53cdafd50a271b4837 (patch) | |
tree | d3e5c71b4d1c4ef405a25f5ddd512687d01685ec /ethchain/closure.go | |
parent | 90bb512f420f204f50ba451a4a25682ca8443746 (diff) | |
download | go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.gz go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.bz2 go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.lz go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.xz go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.zst go-tangerine-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.zip |
Added new insruction methods
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r-- | ethchain/closure.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go index 2e809aa9d..e9cb2c8bc 100644 --- a/ethchain/closure.go +++ b/ethchain/closure.go @@ -17,6 +17,7 @@ type ClosureBody interface { ethutil.RlpEncodable GetMem(*big.Int) *ethutil.Value SetMem(*big.Int, *ethutil.Value) + GetInstr(*big.Int) *ethutil.Value } // Basic inline closure object which implement the 'closure' interface @@ -46,6 +47,10 @@ func (c *Closure) GetMem(x *big.Int) *ethutil.Value { return m } +func (c *Closure) GetInstr(x *big.Int) *ethutil.Value { + return c.object.GetInstr(x) +} + func (c *Closure) SetMem(x *big.Int, val *ethutil.Value) { c.object.SetMem(x, val) } |