From c5dd172faf535dd57d86b173d6f9f9395ab317f2 Mon Sep 17 00:00:00 2001 From: Alexander Gidaro Date: Thu, 2 May 2024 15:13:42 -0400 Subject: [PATCH] Update the newNetworks filter statement to return `newNetwork` will always be `[]` without this --- packages/provider/src/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/provider/src/init.ts b/packages/provider/src/init.ts index 371acae3f..65bd4f33f 100644 --- a/packages/provider/src/init.ts +++ b/packages/provider/src/init.ts @@ -90,7 +90,7 @@ export const initWallet = (projectAccessKey: string, partialConfig?: Partial { - n.rpcUrl !== undefined && n.chainId !== undefined && !allNetworks.find(an => an.chainId === n.chainId) + return n.rpcUrl !== undefined && n.chainId !== undefined && !allNetworks.find(an => an.chainId === n.chainId) }) ?? []) as NetworkConfig[] // Override any information about the networks using the config