Skip to content

Add validation to CreateToken form inputs #955

@ericsharma

Description

@ericsharma

ℹ️ Overview

In CreateToken.tsx in the onSubmit function, ensure the formData inputs are valid. Throw an error message and prevent submission if they are not valid.

Requirements:

  • tokenName - string with no spaces
  • unitName - string with no spaces
  • totalSupply - whole number
  • decimals - whole number between 1-10
  • assetURL - valid url string
  • clawbackAddr - valid algorand wallet string || null
  • reserveAddr - valid algorand wallet string || null
  • managerAddr - valid algorand wallet string || null
  • freezeAddr - valid algorand wallet string || null

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions