From 13e3226b9f131e69e750abd6d35e789060db4d48 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Sat, 11 Jul 2026 19:30:33 +0800 Subject: [PATCH] accounts/abi: set stringKind for contract-typed arguments Contract parameters are mapped to AddressTy, but stringKind was left as the raw type string. Set it to "address" so Type.String() yields the correct ABI signature. --- accounts/abi/type.go | 1 + 1 file changed, 1 insertion(+) diff --git a/accounts/abi/type.go b/accounts/abi/type.go index 2fd11ac123..e000f57bed 100644 --- a/accounts/abi/type.go +++ b/accounts/abi/type.go @@ -222,6 +222,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty if strings.HasPrefix(internalType, "contract ") { typ.Size = 20 typ.T = AddressTy + typ.stringKind = "address" } else { return Type{}, fmt.Errorf("unsupported arg type: %s", t) }