Skip to content

Commit

Permalink
Allow any Networkish for getDefaultProvider (#2031).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Oct 4, 2021
1 parent 375627f commit cc250b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const logger = new Logger(version);
////////////////////////
// Helper Functions

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

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

0 comments on commit cc250b2

Please sign in to comment.