Skip to content

Commit 3ca3986

Browse files
committed
copy over remaining Alex M's changes
1 parent 114f7d5 commit 3ca3986

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/wagmi/metamask-connector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ export function metaMask(parameters: MetaMaskParameters = {}) {
281281
// Convert viem AddEthereumChainParameter to MetaMask SDK format
282282
const chainConfiguration = {
283283
chainId: `0x${chainId.toString(16)}`,
284-
rpcUrls: rpcUrls,
284+
rpcUrls: rpcUrls as string[] | undefined,
285285
nativeCurrency:
286286
addEthereumChainParameter?.nativeCurrency ?? chain.nativeCurrency,
287287
chainName: addEthereumChainParameter?.chainName ?? chain.name,
288-
blockExplorerUrls: blockExplorerUrls,
288+
blockExplorerUrls: blockExplorerUrls as string[] | undefined,
289289
iconUrls: addEthereumChainParameter?.iconUrls,
290290
}
291291

0 commit comments

Comments
 (0)