diff options
Diffstat (limited to 'accounts/abi/method.go')
-rw-r--r-- | accounts/abi/method.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/abi/method.go b/accounts/abi/method.go index 609a71f07..673695aa8 100644 --- a/accounts/abi/method.go +++ b/accounts/abi/method.go @@ -51,8 +51,8 @@ func (method Method) pack(args ...interface{}) ([]byte, error) { // input offset is the bytes offset for packed output inputOffset := 0 for _, input := range method.Inputs { - if input.Type.IsArray { - inputOffset += (32 * input.Type.SliceSize) + if input.Type.T == ArrayTy { + inputOffset += (32 * input.Type.Size) } else { inputOffset += 32 } |