diff --git a/hardhat.config.ts b/hardhat.config.ts index bbb390a9..6158e1b5 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -118,8 +118,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",