From 31ebbb9863479d1847beb2c2e41f273d59b86e25 Mon Sep 17 00:00:00 2001 From: Ivan Zhelyazkov Date: Wed, 13 Dec 2023 18:14:54 +0200 Subject: [PATCH] update etherscan verify docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 645f4bb6..365eaad2 100644 --- a/README.md +++ b/README.md @@ -403,6 +403,10 @@ Note that hardhat-deploy now use a different config format to not conflict with } ``` +Keep in mind that the `ETHERSCAN_API_KEY` .env variable is read first, before the hardhat.config.ts. +If you want to set up multi-network api key support, you can do it by adding an env loader that use .env. files and set `ETHERSCAN_API_KEY`` for each network this way. +Alternatively, you can change the mainnet etherscan api key env var name to something other than `ETHERSCAN_API_KEY`, and specify the other network keys as specified above. + `--api-url `: let you specify your etherscan url to submit the source to. Can also be configured per network in `hardhat.config.js`: ```js