aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/closure.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-12 01:29:57 +0800
committerobscuren <geffobscura@gmail.com>2014-04-12 01:29:57 +0800
commit116516158da637cde50d27d600db6661732fc402 (patch)
tree534568c2794911502058ff15e7176e2d84f29420 /ethchain/closure.go
parentca747f268800590ee855b1ce593b61e95d073311 (diff)
downloadgo-tangerine-116516158da637cde50d27d600db6661732fc402.tar.gz
go-tangerine-116516158da637cde50d27d600db6661732fc402.tar.zst
go-tangerine-116516158da637cde50d27d600db6661732fc402.zip
Renamed
Diffstat (limited to 'ethchain/closure.go')
-rw-r--r--ethchain/closure.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethchain/closure.go b/ethchain/closure.go
index 3d15f2a99..de2196499 100644
--- a/ethchain/closure.go
+++ b/ethchain/closure.go
@@ -52,7 +52,7 @@ func (c *Closure) Get(x *big.Int) *ethutil.Value {
}
func (c *Closure) Gets(x, y *big.Int) *ethutil.Value {
- if x.Int64() > int64(len(c.Script)) || y.Int64() > int64(len(c.Script)) {
+ if x.Int64() >= int64(len(c.Script)) || y.Int64() >= int64(len(c.Script)) {
return ethutil.NewValue(0)
}
@@ -69,7 +69,7 @@ func (c *Closure) Address() []byte {
return c.object.Address()
}
-type DebugHook func(op OpCode)
+type DebugHook func(op OpCode, mem *Memory, stack *Stack)
func (c *Closure) Call(vm *Vm, args []byte, hook DebugHook) []byte {
c.Args = args