Skip to content

Commit

Permalink
Merge pull request #504 from ivanzhelyazkov/update-etherscan-verify-docs
Browse files Browse the repository at this point in the history
update etherscan verify docs
  • Loading branch information
wighawag authored Dec 14, 2023
2 parents f58e1e8 + 31ebbb9 commit a611466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<network-name> 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 <url>`: let you specify your etherscan url to submit the source to. Can also be configured per network in `hardhat.config.js`:

```js
Expand Down

0 comments on commit a611466

Please sign in to comment.