diff --git a/hardhat.config.ts b/hardhat.config.ts index 2fd3bab8..af8ea557 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -112,8 +112,8 @@ const config: HardhatUserConfig = { sources: "./contracts", tests: "./test", }, - etherscan: { - apiKey: getScanApiKey(String(process.env.networkType)), + etherscan: { + apiKey: getScanApiKey(getNetworkUrl(String(process.env.networkType))), }, typechain: { outDir: "typechain",