Skip to content

Commit 4b2f1f7

Browse files
committed
idx should return -1
1 parent df3366d commit 4b2f1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethutil/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,5 +397,5 @@ func (it *ValueIterator) Value() *Value {
397397
}
398398

399399
func (it *ValueIterator) Idx() int {
400-
return it.idx
400+
return it.idx - 1
401401
}

0 commit comments

Comments
 (0)