Skip to content

Commit e97cef6

Browse files
committed
accounts/abi/abigen: simplify calculation whether or not a method's outputs should be gathered into a struct
1 parent ab6643b commit e97cef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/abi/abigen/bindv2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ func (cb *contractBinder) bindMethod(original abi.Method) error {
175175
cb.binder.BindStructType(output.Type)
176176
}
177177
}
178-
isStructured := structured(original.Outputs)
179178

179+
var isStructured bool
180180
// If the call returns multiple values, gather them into a struct
181181
if len(normalized.Outputs) > 1 {
182182
isStructured = true

0 commit comments

Comments
 (0)