Skip to content

Commit

Permalink
Add coinmarketcap config to gas reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiOhl committed Apr 23, 2024
1 parent e3a7083 commit 5dccab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Your CoinMarketCap API key for contract execution costs in fiat currency.
COINMARKETCAP_API_KEY=b4875fde-123-123-123-bcdacd213ca5
# Your Etherscan API key for contract source code verification.
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
# Your infura.io project ID for deploying to Ethereum networks.
Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ const config: HardhatUserConfig = {
}
},
gasReporter: {
coinmarketcap: process.env.COINMARKETCAP_API_KEY || "",
enabled: true,
currency: "USD",
showTimeSpent: true
currency: "USD"
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
Expand Down

0 comments on commit 5dccab4

Please sign in to comment.