Custom API key for Etherscan during tests (#824).

This commit is contained in:
Richard Moore 2020-09-17 03:44:29 -04:00
parent 1097a1b020
commit f733fac875
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -477,9 +477,9 @@ const providerFunctions: Array<ProviderDescription> = [
networks: allNetworks,
create: (network: string) => {
if (network == "default") {
return new ethers.providers.EtherscanProvider();
return new ethers.providers.EtherscanProvider(null, "YTCX255XJGH9SCBUDP2K48S4YWACUEFSJX");
}
return new ethers.providers.EtherscanProvider(network);
return new ethers.providers.EtherscanProvider(network, "YTCX255XJGH9SCBUDP2K48S4YWACUEFSJX");
}
},
{