Fix pocket API key not being passed in for default provider (#2890).

This commit is contained in:
Richard Moore 2022-04-12 16:20:32 -04:00
parent 47c41143cb
commit 056d7c8bfc

@ -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);
}