Skip to content

Validate withdrawal address in Watcher #13

Description

@mkermani144

Description

The withdrawal address in Watcher withdraw action should be validated. The logic should be exactly the same as Rosen app, as implemented in validateAddress server action. Please note that, Watcher app is run in the browser, as opposed to Rosen app which is partially run in NodeJS. So, browser version of ergo-lib should be used. In addition, the address in Watcher app is always an Ergo address.

Acceptance conditions

  • An appropriate error should be shown below the withdrawal address text field, the same as Rosen app
  • Validation logic should be the same as Rosen app
  • The validation should be done through react-hook-form APIs, as done in Rosen app (e.g. in useBridgeForm)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions