aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/value.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-18 18:55:46 +0800
committerobscuren <geffobscura@gmail.com>2014-12-18 18:55:46 +0800
commit4b2f1f76282069007f2bc6d91a90924ac29fd238 (patch)
treee2c46231be413b075624e749112bf10bef7aad5e /ethutil/value.go
parentdf3366d910c2b1ddab986264bc186ca79ba65c4e (diff)
downloadgo-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.tar
go-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.tar.gz
go-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.tar.bz2
go-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.tar.lz
go-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.tar.xz
go-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.tar.zst
go-tangerine-4b2f1f76282069007f2bc6d91a90924ac29fd238.zip
idx should return -1
Diffstat (limited to 'ethutil/value.go')
-rw-r--r--ethutil/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethutil/value.go b/ethutil/value.go
index 6417b0008..7d4a7d98c 100644
--- a/ethutil/value.go
+++ b/ethutil/value.go
@@ -397,5 +397,5 @@ func (it *ValueIterator) Value() *Value {
}
func (it *ValueIterator) Idx() int {
- return it.idx
+ return it.idx - 1
}