mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Fix index
This commit is contained in:
parent
c2d2404980
commit
97e2d5aeb7
1 changed files with 3 additions and 1 deletions
|
|
@ -192,7 +192,8 @@ func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) {
|
||||||
|
|
||||||
retval := make([]interface{}, 0, size)
|
retval := make([]interface{}, 0, size)
|
||||||
virtualArgs := 0
|
virtualArgs := 0
|
||||||
for index, arg := range arguments {
|
index := 0
|
||||||
|
for _, arg := range arguments {
|
||||||
if arg.Indexed {
|
if arg.Indexed {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
@ -218,6 +219,7 @@ func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) {
|
||||||
virtualArgs += getTypeSize(arg.Type)/32 - 1
|
virtualArgs += getTypeSize(arg.Type)/32 - 1
|
||||||
}
|
}
|
||||||
retval = append(retval, marshalledValue)
|
retval = append(retval, marshalledValue)
|
||||||
|
index++
|
||||||
}
|
}
|
||||||
return retval, nil
|
return retval, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue