diff options
author | RJ <rj@erisindustries.com> | 2017-01-05 18:46:44 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-01-05 18:46:44 +0800 |
commit | 2126d8148806b6d8597d6a1c761080e9dc98d745 (patch) | |
tree | 82f83bff1c99701b1664120ef269d2ec9aae16d9 /accounts/abi/packing.go | |
parent | 06b381d1c9dd8e47d7862c0846352a0023e53ed0 (diff) | |
download | go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar.gz go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar.bz2 go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar.lz go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar.xz go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar.zst go-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.zip |
accounts/abi: add support for function types (#3405)
Diffstat (limited to 'accounts/abi/packing.go')
-rw-r--r-- | accounts/abi/packing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/packing.go b/accounts/abi/packing.go index 0c37edf17..5054dcf13 100644 --- a/accounts/abi/packing.go +++ b/accounts/abi/packing.go @@ -54,7 +54,7 @@ func packElement(t Type, reflectValue reflect.Value) []byte { reflectValue = mustArrayToByteSlice(reflectValue) } return packBytesSlice(reflectValue.Bytes(), reflectValue.Len()) - case FixedBytesTy: + case FixedBytesTy, FunctionTy: if reflectValue.Kind() == reflect.Array { reflectValue = mustArrayToByteSlice(reflectValue) } |