mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
fixes
This commit is contained in:
parent
ddb0a55af5
commit
1acba127a0
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user