Skip to content

Commit 7ad9097

Browse files
committed
skip unpack method when no return args
1 parent 6e180fa commit 7ad9097

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

accounts/abi/bind/bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func BindV2(types []string, abis []string, bytecodes []string, fsigs []map[strin
129129
if call.Structured {
130130
continue
131131
}
132-
if len(call.Normalized.Outputs) == 1 {
132+
if len(call.Normalized.Outputs) < 2 {
133133
continue
134134
}
135135
// Build up dictionary of existing arg names.

accounts/abi/bind/template2.go

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

0 commit comments

Comments
 (0)