diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-05-12 21:28:18 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-05-12 21:28:18 +0800 |
commit | cc21706c5007e8f400df536591948aee69e82d2f (patch) | |
tree | 655a7c14ad031e5a6ce63f0819dbd50de3080e7a /accounts/abi/bind/template.go | |
parent | 25931f12c1064fde5196a4f188565036d408c713 (diff) | |
download | dexon-cc21706c5007e8f400df536591948aee69e82d2f.tar dexon-cc21706c5007e8f400df536591948aee69e82d2f.tar.gz dexon-cc21706c5007e8f400df536591948aee69e82d2f.tar.bz2 dexon-cc21706c5007e8f400df536591948aee69e82d2f.tar.lz dexon-cc21706c5007e8f400df536591948aee69e82d2f.tar.xz dexon-cc21706c5007e8f400df536591948aee69e82d2f.tar.zst dexon-cc21706c5007e8f400df536591948aee69e82d2f.zip |
accounts/abi/bind: fix multi-value anonymous unmarshalling
Diffstat (limited to 'accounts/abi/bind/template.go')
-rw-r--r-- | accounts/abi/bind/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index 36ac1d78d..72998bb6d 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -211,7 +211,7 @@ package {{.Package}} {{range $i, $_ := .Normalized.Outputs}}ret{{$i}} = new({{bindtype .Type}}) {{end}} ){{end}} - out := {{if .Structured}}ret{{else}}{{if eq (len .Normalized.Outputs) 1}}ret0{{else}}[]interface{}{ + out := {{if .Structured}}ret{{else}}{{if eq (len .Normalized.Outputs) 1}}ret0{{else}}&[]interface{}{ {{range $i, $_ := .Normalized.Outputs}}ret{{$i}}, {{end}} }{{end}}{{end}} |