From 7252782935c308f10db89cdc5a1080746c175395 Mon Sep 17 00:00:00 2001 From: w3stside Date: Sat, 31 Aug 2024 00:08:37 +0200 Subject: [PATCH] fix(connector.ts): change array type to string - previously this was causing urls to be parsed as single character strings --- src/lib/connector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/connector.ts b/src/lib/connector.ts index a7d294c..16035c2 100644 --- a/src/lib/connector.ts +++ b/src/lib/connector.ts @@ -112,7 +112,7 @@ export function Web3AuthConnector(parameters: Web3AuthConnectorParams) { chainId: `0x${chain.id.toString(16)}`, rpcTarget: chain.rpcUrls.default.http[0], displayName: chain.name, - blockExplorerUrl: chain.blockExplorers?.default.url[0] || "", + blockExplorerUrl: chain.blockExplorers?.default.url || "", ticker: chain.nativeCurrency?.symbol || "ETH", tickerName: chain.nativeCurrency?.name || "Ethereum", decimals: chain.nativeCurrency?.decimals || 18,