aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/closure.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-09 20:08:18 +0800
committerobscuren <geffobscura@gmail.com>2014-04-09 20:08:18 +0800
commitc0a030ef0a3ce8342fda2a53cdafd50a271b4837 (patch)
treed3e5c71b4d1c4ef405a25f5ddd512687d01685ec /ethchain/closure.go
parent90bb512f420f204f50ba451a4a25682ca8443746 (diff)
downloaddexon-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.gz
dexon-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.tar.zst
dexon-c0a030ef0a3ce8342fda2a53cdafd50a271b4837.zip
Added new insruction methods
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r--ethchain/closure.go5
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)
}