aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/packing.go
diff options
context:
space:
mode:
authorRJ <rj@erisindustries.com>2017-01-05 18:46:44 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-01-05 18:46:44 +0800
commit2126d8148806b6d8597d6a1c761080e9dc98d745 (patch)
tree82f83bff1c99701b1664120ef269d2ec9aae16d9 /accounts/abi/packing.go
parent06b381d1c9dd8e47d7862c0846352a0023e53ed0 (diff)
downloadgo-tangerine-2126d8148806b6d8597d6a1c761080e9dc98d745.tar.gz
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.go2
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)
}