Allow network for default provider to be null to select mainnet (#4501).
This commit is contained in:
parent
59cfa864be
commit
b6bf7aba62
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user