diff options
author | weimumu <934657014@qq.com> | 2018-12-17 16:50:52 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2018-12-17 16:50:52 +0800 |
commit | 3ad73443c7a96c928577234df5c742d53f3293ef (patch) | |
tree | 6fefd22f93c2cf96bdae53031ee9f4b714a62f8c /accounts/abi/unpack.go | |
parent | 7dbb075c07511ccdfd8b428cce1adbc6c146eb18 (diff) | |
download | go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.tar go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.tar.gz go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.tar.bz2 go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.tar.lz go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.tar.xz go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.tar.zst go-tangerine-3ad73443c7a96c928577234df5c742d53f3293ef.zip |
fix slice unpack bug in accounts/abi (#18321)
* fix slice unpack bug in accounts/abi
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 d5875140c..c3bbbb251 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -151,7 +151,7 @@ func forEachUnpack(t Type, output []byte, start, size int) (interface{}, error) // Arrays have packed elements, resulting in longer unpack steps. // Slices have just 32 bytes per element (pointing to the contents). elemSize := 32 - if t.T == ArrayTy { + if t.T == ArrayTy || t.T == SliceTy { elemSize = getFullElemSize(t.Elem) } |