mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 16:13:47 +00:00
accounts/abi/abigen: simplify calculation whether or not a method's outputs should be gathered into a struct
This commit is contained in:
parent
ab6643b775
commit
e97cef6365
1 changed files with 1 additions and 1 deletions
|
|
@ -175,8 +175,8 @@ func (cb *contractBinder) bindMethod(original abi.Method) error {
|
|||
cb.binder.BindStructType(output.Type)
|
||||
}
|
||||
}
|
||||
isStructured := structured(original.Outputs)
|
||||
|
||||
var isStructured bool
|
||||
// If the call returns multiple values, gather them into a struct
|
||||
if len(normalized.Outputs) > 1 {
|
||||
isStructured = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue