Skip to content

Commit cc250b2

Browse files
committed
Allow any Networkish for getDefaultProvider (ethers-io#2031).
1 parent 375627f commit cc250b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/providers/src.ts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const logger = new Logger(version);
4343
////////////////////////
4444
// Helper Functions
4545

46-
function getDefaultProvider(network?: Network | string, options?: any): BaseProvider {
46+
function getDefaultProvider(network?: Networkish, options?: any): BaseProvider {
4747
if (network == null) { network = "homestead"; }
4848

4949
// If passed a URL, figure out the right type of provider based on the scheme

0 commit comments

Comments
 (0)