Skip to content

Commit

Permalink
Fix pocket API key not being passed in for default provider (#2890).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 12, 2022
1 parent 47c4114 commit 056d7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/networks/src.ts/index.ts
Expand Up @@ -51,7 +51,7 @@ function ethDefaultProvider(network: string | Network): Renetworkable {
// @TODO: This goes away once Pocket has upgraded their nodes
const skip = [ "goerli", "ropsten", "rinkeby" ];
try {
const provider = new providers.PocketProvider(network);
const provider = new providers.PocketProvider(network, options.pocket);
if (provider.network && skip.indexOf(provider.network.name) === -1) {
providerList.push(provider);
}
Expand Down

0 comments on commit 056d7c8

Please sign in to comment.