Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate withdrawal address in Watcher #13

Open
3 tasks
mkermani144 opened this issue Jul 22, 2024 · 0 comments
Open
3 tasks

Validate withdrawal address in Watcher #13

mkermani144 opened this issue Jul 22, 2024 · 0 comments
Labels
500 RSN Bounty contribution friendly Contributions outside Rosen Team are welcomed

Comments

@mkermani144
Copy link
Member

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)
@mkermani144 mkermani144 added contribution friendly Contributions outside Rosen Team are welcomed 500 RSN Bounty labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
500 RSN Bounty contribution friendly Contributions outside Rosen Team are welcomed
Projects
None yet
Development

No branches or pull requests

1 participant