cowprotocol / cowprotocol/token-lists

No validation for the address field on the Add image form

Open
#109 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue
Dominant language
TypeScript
Stars
16
Forks
35
PR merge metrics
No merged PRs in 30d

Description

  1. Open https://github.com/cowprotocol/token-lists/issues/new/choose
  2. Press on the Add image
  3. Fill in the address field with any value
  4. Select an image
  5. Submit the request.

AR: there is no validation for the Address field on

  • format
  • whether it belongs to the selected network or not

ER: it would be great to add these validations

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Add image form reached through the linked issue URL and inspect the address field together with the selected network. Reproduce the submission steps, then identify the existing form validation and network data used there. Done means invalid address formats and addresses from the wrong network are rejected before submission.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.