aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/type.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2016-03-31 17:38:31 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2016-04-05 02:30:59 +0800
commit968d8ffe942f6ef3776b43a73fb0fe85eb955a68 (patch)
tree7c02147df547ce31c1240a8a133e22f554ca0ef7 /accounts/abi/type.go
parent022cbd680052eb87b32d5f59587957779d382c0c (diff)
downloadgo-tangerine-968d8ffe942f6ef3776b43a73fb0fe85eb955a68.tar.gz
go-tangerine-968d8ffe942f6ef3776b43a73fb0fe85eb955a68.tar.zst
go-tangerine-968d8ffe942f6ef3776b43a73fb0fe85eb955a68.zip
abi: accept output slices of all supported types
Diffstat (limited to 'accounts/abi/type.go')
-rw-r--r--accounts/abi/type.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/accounts/abi/type.go b/accounts/abi/type.go
index 18cd04672..b7ce6a13b 100644
--- a/accounts/abi/type.go
+++ b/accounts/abi/type.go
@@ -113,7 +113,6 @@ func NewType(t string) (typ Type, err error) {
case "real": // TODO
typ.Kind = reflect.Invalid
case "address":
- typ.Kind = reflect.Slice
typ.Type = address_t
typ.Size = 20
typ.T = AddressTy
@@ -125,12 +124,12 @@ func NewType(t string) (typ Type, err error) {
typ.Size = 32
}
case "hash":
- typ.Kind = reflect.Slice
+ typ.Kind = reflect.Array
typ.Size = 32
typ.Type = hash_t
typ.T = HashTy
case "bytes":
- typ.Kind = reflect.Slice
+ typ.Kind = reflect.Array
typ.Type = byte_ts
typ.Size = vsize
if vsize == 0 {