Fix pocket API key not being passed in for default provider (#2890).
This commit is contained in:
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user