MetaMask / MetaMask/metamask-mobile

Custom Network: Block Explorer URL must be a valid `http[s]:` protocol URL

Open
#2,483 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

As user, I want to optionally add a block explorer URL when adding a custom network. In case the URL is not a `http://`/`https:` I want to be warned and prevented from adding an invalid URL

As developer, I want to make sure `blockExplorerURL` is a valid URL.

Contributor guide

Open the contributing guide

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 custom-network add flow and trace how blockExplorerURL is accepted. Verify that URLs using http:// or https: are accepted, while other protocols or invalid values prevent the network from being added and produce a warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.