Skip to content

Commit 3149a51

Browse files
authored
Merge pull request #1945 from streamr-dev/front-1925-hub-cant-add-amoy-chain-to-metamask
FRONT-1925: Fix auto-adding networks in the preflight
2 parents 48d4de4 + e9cd9b0 commit 3149a51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/networkPreflight.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export default async function networkPreflight(expectedChainId: number) {
4848
chainName: chainConfig.name,
4949
rpcUrls: chainConfig.rpcEndpoints.map(({ url }) => url),
5050
nativeCurrency: chainConfig.nativeCurrency,
51+
blockExplorerUrls: [chainConfig.blockExplorerUrl].filter(
52+
Boolean,
53+
) as string[],
5154
},
5255
],
5356
})

0 commit comments

Comments
 (0)