Added new insruction methods

This commit is contained in:
obscuren
2014-04-09 14:08:18 +02:00
parent 90bb512f42
commit c0a030ef0a
3 changed files with 39 additions and 1 deletions

View File

@ -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)
}