Allow network for default provider to be null to select mainnet (#4501).

This commit is contained in:
Richard Moore 2024-02-01 01:50:59 -05:00
parent 59cfa864be
commit b6bf7aba62

@ -68,7 +68,7 @@ const Testnets = "goerli kovan sepolia classicKotti optimism-goerli arbitrum-goe
* exclusive: [ "etherscan", "infura" ] * 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 = { }; } if (options == null) { options = { }; }
const allowService = (name: string) => { const allowService = (name: string) => {