Skip to content

Commit

Permalink
updating based in comments in #23806
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Aug 14, 2024
1 parent 8670272 commit 3b36759
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,13 @@ export function validateAddEthereumChainParams(
};

const firstValidRPCUrl = rpcUrls.find(
(rpcUrl) => typeof rpcUrl === 'string' && isLocalhostOrHttps(rpcUrl),
(rpcUrl): rpcUrl is string =>
typeof rpcUrl === 'string' && isLocalhostOrHttps(rpcUrl),
);
const firstValidBlockExplorerUrl =
blockExplorerUrls !== null && Array.isArray(blockExplorerUrls)
? blockExplorerUrls.find(
(blockExplorerUrl) =>
(blockExplorerUrl): blockExplorerUrl is string =>
typeof blockExplorerUrl === 'string' &&
isLocalhostOrHttps(blockExplorerUrl),
)
Expand Down

0 comments on commit 3b36759

Please sign in to comment.