From b6bf7aba62fb38839cd01858432b801cc5c28a11 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 1 Feb 2024 01:50:59 -0500 Subject: [PATCH] Allow network for default provider to be null to select mainnet (#4501). --- src.ts/providers/default-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/providers/default-provider.ts b/src.ts/providers/default-provider.ts index e24ea92cd..f20195df2 100644 --- a/src.ts/providers/default-provider.ts +++ b/src.ts/providers/default-provider.ts @@ -68,7 +68,7 @@ const Testnets = "goerli kovan sepolia classicKotti optimism-goerli arbitrum-goe * exclusive: [ "etherscan", "infura" ] * }); */ -export function getDefaultProvider(network: string | Networkish | WebSocketLike, options?: any): AbstractProvider { +export function getDefaultProvider(network?: string | Networkish | WebSocketLike, options?: any): AbstractProvider { if (options == null) { options = { }; } const allowService = (name: string) => {