Skip to content

MintForm: validate recipient address before submission #742

Description

@Ejirowebfi

Description

MintForm.tsx does not validate the recipient address field before calling mint_tokens. An invalid address causes a confusing RPC error instead of a clear inline validation message.

Tasks

  • Use isValidStellarAddress from utils/validation.ts on the recipient field
  • Show an inline error message for invalid addresses
  • Disable the submit button while the address is invalid
  • Add a unit test covering valid and invalid address inputs

Acceptance Criteria

  • Invalid Stellar address shows an inline error
  • Submit button is disabled until the address is valid
  • Valid address clears the error and enables submission

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignbugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions