accounts/abi: set stringKind for contract-typed arguments (#35345)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

This commit is contained in:
cui 2026-08-05 14:58:41 +08:00 committed by GitHub
parent 2d8bc9f8c3
commit a235d28192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}