Skip to content

Commit

Permalink
tests: updated pocket to normal API key.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 18, 2022
1 parent 10d07ca commit 9ccdd17
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions packages/tests/src.ts/test-providers.ts
Expand Up @@ -531,21 +531,15 @@ type TestDescription = {
};


const allNetworks = [ "default", "homestead", "ropsten", "rinkeby", "kovan", "goerli" ];
const allNetworks = [ "default", "homestead", "ropsten", "rinkeby", "goerli" ];

// We use separate API keys because otherwise the testcases sometimes
// fail during CI because our default keys are pretty heavily used
const _ApiKeys: Record<string, string> = {
alchemy: "YrPw6SWb20vJDRFkhWq8aKnTQ8JRNRHM",
etherscan: "FPFGK6JSW2UHJJ2666FG93KP7WC999MNW7",
infura: "49a0efa3aaee4fd99797bfa94d8ce2f1",
};

const _ApiKeysPocket: Record<string, string> = {
homestead: "6004bcd10040261633ade990",
ropsten: "6004bd4d0040261633ade991",
rinkeby: "6004bda20040261633ade994",
goerli: "6004bd860040261633ade992",
pocket: "62fd9de24b068e0039c16996"
};

type ApiKeySet = {
Expand All @@ -558,7 +552,7 @@ type ApiKeySet = {
function getApiKeys(network: string): ApiKeySet {
if (network === "default" || network == null) { network = "homestead"; }
const apiKeys = ethers.utils.shallowCopy(_ApiKeys);
apiKeys.pocket = _ApiKeysPocket[network];
//apiKeys.pocket = _ApiKeysPocket[network];
return <ApiKeySet>apiKeys;
}

Expand Down Expand Up @@ -631,11 +625,7 @@ const providerFunctions: Array<ProviderDescription> = [
},
{
name: "PocketProvider",
// note: sans-kovan
// @TODO: Pocket is being incredibly unreliable right now; removing it so
// we can pass the CI
//networks: [ "default", "homestead", "ropsten", "rinkeby", "goerli" ],
networks: [ "default", "homestead" ],
networks: [ "default", "homestead", "goerli" ],
create: (network: string) => {
if (network == "default") {
return new ethers.providers.PocketProvider(null, {
Expand Down

0 comments on commit 9ccdd17

Please sign in to comment.