metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

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

Open wachunei opened this issue 3 years ago • 2 comments

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.

wachunei avatar Apr 08 '21 14:04 wachunei

if adding block explorer with www it will show that in the burger menu

image

if not adding https:// it will show up as undefined

image

The sweet spot is when www is removed, so you'd have https://bscscan.com/

image

ibrahimtaveras00 avatar Apr 15 '21 21:04 ibrahimtaveras00

Add validation on the custom network adding form:

  1. Enforce an HTTPS:// (not HTTP)
  2. Validation that this is a valid URL

omnat avatar May 06 '21 19:05 omnat