Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow network for default provider to be null to select mainnet (#4501).
  • Loading branch information
ricmoo committed Feb 1, 2024
1 parent 59cfa86 commit b6bf7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/providers/default-provider.ts
Expand Up @@ -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) => {
Expand Down

0 comments on commit b6bf7ab

Please sign in to comment.