Skip to content

accounts/abi: set stringKind for contract-typed arguments#35345

Open
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:accounts-abi-contract-stringkind
Open

accounts/abi: set stringKind for contract-typed arguments#35345
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:accounts-abi-contract-stringkind

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Set stringKind to "address" when mapping contract internal types to AddressTy.
  • Ensures Type.String() returns the correct ABI signature for contract-typed arguments.

Test plan

  • go test -short ./accounts/abi/

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant