Skip to content

Commit

Permalink
allow localhost blockExplorerUrls
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Mar 30, 2022
1 parent 5f5a74a commit 3e03807
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,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 3e03807

Please sign in to comment.