Skip to content

Validate payout address on Submit Work #9959

Open
@gdixon

Description

@gdixon

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

Metadata

Metadata

Assignees

No one assigned

    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