From c2c443cf8919716358e783fa8e24dfaf76acd7b4 Mon Sep 17 00:00:00 2001 From: Rinat Date: Mon, 2 Dec 2024 09:59:20 +0100 Subject: [PATCH] fix: ethercan mainnet api key env var --- packages/hardhat/.env.example | 2 +- packages/hardhat/hardhat.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hardhat/.env.example b/packages/hardhat/.env.example index a9ccb0860..86614fe5e 100644 --- a/packages/hardhat/.env.example +++ b/packages/hardhat/.env.example @@ -8,4 +8,4 @@ # To access the values stored in this .env file you can use: process.env.VARIABLENAME ALCHEMY_API_KEY= DEPLOYER_PRIVATE_KEY= -ETHERSCAN_API_KEY= +ETHERSCAN_MAINNET_API_KEY= diff --git a/packages/hardhat/hardhat.config.ts b/packages/hardhat/hardhat.config.ts index 2db6f4ceb..9cdbc8be1 100644 --- a/packages/hardhat/hardhat.config.ts +++ b/packages/hardhat/hardhat.config.ts @@ -14,7 +14,7 @@ import "hardhat-deploy-ethers"; const deployerPrivateKey = process.env.DEPLOYER_PRIVATE_KEY ?? "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; // If not set, it uses our block explorers default API keys. -const etherscanApiKey = process.env.ETHERSCAN_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW"; +const etherscanApiKey = process.env.ETHERSCAN_MAINNET_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW"; const etherscanOptimisticApiKey = process.env.ETHERSCAN_OPTIMISTIC_API_KEY || "RM62RDISS1RH448ZY379NX625ASG1N633R"; const basescanApiKey = process.env.BASESCAN_API_KEY || "ZZZEIPMT1MNJ8526VV2Y744CA7TNZR64G6";