Skip to content

Commit

Permalink
allow localhost blockExplorerUrls
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed May 10, 2022
1 parent 804afeb commit 2be88f4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ async function addEthereumChainHandler(

const firstValidBlockExplorerUrl =
blockExplorerUrls !== null && Array.isArray(blockExplorerUrls)
? blockExplorerUrls.find((blockExplorerUrl) =>
validUrl.isHttpsUri(blockExplorerUrl),
? blockExplorerUrls.find(
(blockExplorerUrl) =>
isLocalhost(blockExplorerUrl) ||
validUrl.isHttpsUri(blockExplorerUrl),
)
: null;

Expand Down

0 comments on commit 2be88f4

Please sign in to comment.