From cc21706c5007e8f400df536591948aee69e82d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 12 May 2016 16:28:18 +0300 Subject: accounts/abi/bind: fix multi-value anonymous unmarshalling --- accounts/abi/bind/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accounts/abi/bind/template.go') 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}} -- cgit v1.2.3