aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind/template.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-12 22:49:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-12 22:49:09 +0800
commita5ff487889e8efae58461e0967cd6ec49facf6e9 (patch)
tree721b25024d1fcefbf1c43196ff08fcf773a5bf5b /accounts/abi/bind/template.go
parent331b8153008d7da20c705fb2be09b2e03d352c88 (diff)
parent251b3c6406aee5876c87016bd088c8cefe7c08f6 (diff)
downloaddexon-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.go2
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}}