This commit is contained in:
pradyuman-verma 2022-01-11 15:21:10 +05:30
parent ddb0a55af5
commit 1acba127a0
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F

View File

@ -51,7 +51,7 @@ function getNetworkUrl(networkType: string) {
if (networkType === "avalanche") if (networkType === "avalanche")
return "https://api.avax.network/ext/bc/C/rpc"; return "https://api.avax.network/ext/bc/C/rpc";
else if (networkType === "polygon") else if (networkType === "polygon")
return `https://polygon-mumbai.g.alchemy.com/v2/${alchemyApiKey}`; return `https://polygon-mainnet.g.alchemy.com/v2/${alchemyApiKey}`;
else if (networkType === "arbitrum") else if (networkType === "arbitrum")
return `https://arb-mainnet.g.alchemy.com/v2/${alchemyApiKey}`; return `https://arb-mainnet.g.alchemy.com/v2/${alchemyApiKey}`;
else return `https://eth-mainnet.alchemyapi.io/v2/${alchemyApiKey}`; else return `https://eth-mainnet.alchemyapi.io/v2/${alchemyApiKey}`;
@ -112,7 +112,7 @@ const config: HardhatUserConfig = {
tests: "./test", tests: "./test",
}, },
etherscan: { etherscan: {
apiKey: "VT3JEKZ573EIRIMBRREREV2NNJ18NVNI51", apiKey: getScanApiKey(getNetworkUrl(String(process.env.networkType))),
}, },
typechain: { typechain: {
outDir: "typechain", outDir: "typechain",