accounts/abi: fix event unpack into slice
+ The event slice unpacker doesn't correctly extract element from the slice. The indexed arguments are not ignored as they should be (the data offset should not include the indexed arguments). + The `Elem()` call in the slice unpack doesn't work. The Slice related tests fails because of that. + the check in the loop are suboptimal and have been extracted out of the loop. + extracted common code from event and method tupleUnpack
Showing
- accounts/abi/argument.go 10 additions, 0 deletionsaccounts/abi/argument.go
- accounts/abi/event.go 10 additions, 13 deletionsaccounts/abi/event.go
- accounts/abi/method.go 7 additions, 9 deletionsaccounts/abi/method.go
- accounts/abi/reflect.go 8 additions, 0 deletionsaccounts/abi/reflect.go
- accounts/abi/unpack.go 1 addition, 1 deletionaccounts/abi/unpack.go
Loading
Please register or sign in to comment