-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(etherscan-verify): workaround a bug when using distinct keys per …
…network Turns out that if the ETHERSCAN_API_KEY is set, hardhat-deploy ignores any apiKey setting in hardhat.config.ts. As a workaround, we rename ETHERSCAN_API_KEY to ETHERSCAN_API_KEY_FIX.
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
REPORT_GAS=true | ||
INFURA_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
|
||
# There seems to be a bug with hardhat-deploy's implementation of etherscan-verify | ||
# If ETHERSCAN_API_KEY is set, it overrides any hardhat configuration. | ||
ETHERSCAN_API_KEY_FIX=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
ARBISCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
REPORT_GAS=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters