From e97cef6365b5c24f79bb90a57a27d4b61ea15ef2 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 17 Feb 2025 17:03:06 -0800 Subject: [PATCH] accounts/abi/abigen: simplify calculation whether or not a method's outputs should be gathered into a struct --- accounts/abi/abigen/bindv2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/abi/abigen/bindv2.go b/accounts/abi/abigen/bindv2.go index d465327973..3b9d0fc205 100644 --- a/accounts/abi/abigen/bindv2.go +++ b/accounts/abi/abigen/bindv2.go @@ -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