diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-04-21 03:30:02 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-04-28 18:41:47 +0800 |
commit | 4880868c88b8d82cda8ea615bf82548667a95da2 (patch) | |
tree | 973857d454e2f70b100f190ad40bb3c32f1cdd0b /accounts/abi/method.go | |
parent | c3d5250473794e5b7732e0d06941a6736cff2fca (diff) | |
download | go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.gz go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.tar.zst go-tangerine-4880868c88b8d82cda8ea615bf82548667a95da2.zip |
accounts/abi: fixed string and fixed size bytes packing
Diffstat (limited to 'accounts/abi/method.go')
-rw-r--r-- | accounts/abi/method.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/method.go b/accounts/abi/method.go index cad0cd27f..f3d1a44b5 100644 --- a/accounts/abi/method.go +++ b/accounts/abi/method.go @@ -58,7 +58,7 @@ func (m Method) pack(method Method, args ...interface{}) ([]byte, error) { } // check for a slice type (string, bytes, slice) - if input.Type.T == StringTy || input.Type.T == BytesTy || input.Type.IsSlice || input.Type.IsArray { + if input.Type.requiresLengthPrefix() { // calculate the offset offset := len(method.Inputs)*32 + len(variableInput) // set the offset |