diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-05-12 22:49:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-05-12 22:49:09 +0800 |
commit | a5ff487889e8efae58461e0967cd6ec49facf6e9 (patch) | |
tree | 721b25024d1fcefbf1c43196ff08fcf773a5bf5b /accounts/abi/bind/template.go | |
parent | 331b8153008d7da20c705fb2be09b2e03d352c88 (diff) | |
parent | 251b3c6406aee5876c87016bd088c8cefe7c08f6 (diff) | |
download | dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.tar dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.tar.gz dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.tar.bz2 dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.tar.lz dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.tar.xz dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.tar.zst dexon-a5ff487889e8efae58461e0967cd6ec49facf6e9.zip |
Merge pull request #2559 from karalabe/abigen-unmarshal
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}} |