Skip to content

Commit

Permalink
Configure Etherscan API key for use with @nomiclabs/hardhat-etherscan
Browse files Browse the repository at this point in the history
In PR #126 (#126)
we've upgraded the `hardhat-deploy` plugin to latest version (^0.11.15). As part
of this change, the way of storing Etherscan API key has changed - to be
different from how the key is stored for @nomiclabs/hardhat-etherscan plugin
use. When we merged those changes from `main` to the current feature branch, we
no longer had a correct format of the Etherscan API key config to use it with
the `@nomiclabs/hardhat-etherscan` plugin. As we don't want to verify contracts
using `hardhat-deploy` plugin anymore, we need to adjust the config to fit
`@nomiclabs/hardhat-etherscan`'s syntax.
  • Loading branch information
michalinacienciala committed Oct 7, 2022
1 parent d45c7ab commit 5203c81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ const config: HardhatUserConfig = {
username: "thesis",
project: "thesis/threshold-network",
},
verify: {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
external: {
contracts: [
Expand Down

0 comments on commit 5203c81

Please sign in to comment.