web
web copied to clipboard
Validate payout address on Submit Work
User Story:
As a Bounty Funder I want to ensure submissions have the proper wallet address that matches the chain I'm funding on So that there are no lost funds
Acceptance Criteria
Form Initiation - non ETH Bounty: GIVEN i am viewing an open bounty AND i have been approved to submit work WHEN i click submit work THEN existing submit work form will load AND the payout address field should no longer be read only AND we should not autopopulate your eth address from metamask AND the placeholder text in the input field should reflect the proper prefix for the in focus chain AND there should be info text below the form label informing the user what type of wallet address is needed
Display Validation Field: GIVEN i am submitting work on a bounty AND i have entered an invalid payout address for the chain that the payout will occur on WHEN i click the submit button THEN I will see a validation message informing me that the address entered isnt valid for the chain the payout is occurring on AND that message will display under the payout address field AND the submit button will be disabled
Clearing Validation: GIVEN i am submitting work on a bounty AND i have tried to submit the form with an invalid payout address AND the validation on the payout address field is displaying WHEN i enter a new valid payout address AND remove focus from the field THEN the error message will no longer display AND the submit button will be reenabled
Product & Design Links:
https://www.figma.com/file/r2wpg9bHKgLFOWj5neQCmU/Bounties-2022?node-id=0%3A1
Tech Details:
Reuse existing wallet validations - app/assets/v2/js/pages/new_bounty.js -> validateFunderAddress
Notes/Assumptions:
These validations should cover all chains that we support in bounties
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.1 ONE (0.01 USD @ $0.14/ONE) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin's Discord
- $5,017,516.66 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 0.1 ONE (0.01 USD @ $0.14/ONE) has been submitted by:
@gtchase please take a look at the submitted work:
- PR by @nutrina-test6
- Learn more on the Gitcoin Issue Details page
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin's Discord
- $5,017,243.52 more funded OSS Work available on the Gitcoin Issue Explorer
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 1.0 ETH (2878.17 USD @ $2878.17/ETH) attached to it.
- If you would like to work on this issue you can 'start work' on the Gitcoin Issue Details page.
- Want to chip in? Add your own contribution here.
- Questions? Checkout Gitcoin Help or the Gitcoin's Discord
- $12.00 more funded OSS Work available on the Gitcoin Issue Explorer