diff options
author | Robert Zaremba <robert.zaremba@scale-it.pl> | 2017-11-10 09:30:26 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2017-12-21 22:14:50 +0800 |
commit | 0ed8b838a991f81f79cc6ed4fa961c563203a7a2 (patch) | |
tree | 1b6c813a7271b73b4bc0f57ad8bf2ce49325285e /accounts/abi/abi.go | |
parent | 9becba5540540bc37d4ad5eaaf7e4c1937a6542f (diff) | |
download | dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.tar dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.tar.gz dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.tar.bz2 dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.tar.lz dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.tar.xz dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.tar.zst dexon-0ed8b838a991f81f79cc6ed4fa961c563203a7a2.zip |
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
Diffstat (limited to 'accounts/abi/abi.go')
0 files changed, 0 insertions, 0 deletions