Skip to content

Commit 5ae1de4

Browse files
jwasingerfjl
authored andcommitted
accounts/abi/bind: remove unecessary TODO from v2 template
1 parent 8c20a2c commit 5ae1de4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

accounts/abi/bind/source2.go.tpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ var (
8686
{{.Name}} {{bindtype .Type $structs}}{{end}}
8787
}
8888
{{ end }}
89-
// TODO: if return count > 1, we return a struct. no need to iterate .Normalized.Outputs here (but double-check this and remove this TODO once confirmed).
9089
func ({{ decapitalise $contract.Type}} *{{$contract.Type}}) Unpack{{.Normalized.Name}}(data []byte) ({{if .Structured}} {{.Normalized.Name}}Output,{{else}}{{range .Normalized.Outputs}}{{bindtype .Type $structs}},{{end}}{{end}} error) {
9190
out, err := {{ decapitalise $contract.Type}}.abi.Unpack("{{.Original.Name}}", data)
9291
{{if .Structured}}

0 commit comments

Comments
 (0)