aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/unpack.go
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/abi/unpack.go')
-rw-r--r--accounts/abi/unpack.go2
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)
}