Skip to content

Commit 88d18ce

Browse files
committed
upgrade code
1 parent 77ef9be commit 88d18ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

accounts/abi/abigen/source2.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ var (
130130
{{- end }} error) {
131131
out, err := {{ decapitalise $contract.Type}}.abi.Unpack("{{.Original.Name}}", data)
132132
{{- if .Structured}}
133-
outstruct := new({{.Normalized.Name}}Output)
134133
if err != nil {
135134
return nil, err
136135
}
136+
outstruct := new({{.Normalized.Name}}Output)
137137
{{- range $i, $t := .Normalized.Outputs}}
138138
{{- if ispointertype .Type}}
139139
outstruct.{{capitalise .Name}} = abi.ConvertType(out[{{$i}}], new({{underlyingbindtype .Type }})).({{bindtype .Type $structs}})

accounts/abi/bind/v2/internal/contracts/db/bindings.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)