Skip to content

Commit

Permalink
Allow network for default provider to be null to select mainnet (#4501).
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.