diff options
author | Ian Norden <iannordenn@gmail.com> | 2019-04-01 21:42:59 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2019-04-01 21:42:59 +0800 |
commit | cd79bc61a983d6482579d12cdd239b37bbfa12ef (patch) | |
tree | 9593641a132e53ce6095b1473ff351db6fdf6378 /accounts/abi/unpack.go | |
parent | 86e77900c53ebce3309099a39cbca38eb4d62fdf (diff) | |
download | go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.tar go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.tar.gz go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.tar.bz2 go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.tar.lz go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.tar.xz go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.tar.zst go-tangerine-cd79bc61a983d6482579d12cdd239b37bbfa12ef.zip |
accounts/abi: generic unpacking of event logs into map[string]interface{} (#18440)
Add methods that allow for the unpacking of event logs into maps (allows for agnostic unpacking of logs)
Diffstat (limited to 'accounts/abi/unpack.go')
-rw-r--r-- | accounts/abi/unpack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go index 8406b09c8..b2e61d06c 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -269,7 +269,7 @@ func lengthPrefixPointsTo(index int, output []byte) (start int, length int, err totalSize.Add(totalSize, bigOffsetEnd) totalSize.Add(totalSize, lengthBig) if totalSize.BitLen() > 63 { - return 0, 0, fmt.Errorf("abi length larger than int64: %v", totalSize) + return 0, 0, fmt.Errorf("abi: length larger than int64: %v", totalSize) } if totalSize.Cmp(outputLength) > 0 { |