Custom API key for Etherscan during tests (#824).
This commit is contained in:
parent
1097a1b020
commit
f733fac875
@ -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");
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user