Lesson 6: Hardhat Gas Reporter-Price data missing from report #2808
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
@zjy-1998 console.log this gasReporter: {
enabled: true,
outputFile: "gas-report.txt",
noColors: true,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
currency: "USD",
token: "MATIC",
}, If still, you don't see the price then try it the next day or after some time, because sometimes etherscan and coinmarketcap do these fetching issues. |
Beta Was this translation helpful? Give feedback.
-
Push to GitHub; I will look into it with my "settings" so as to diagnose the logic--once debugged, the issue will be limited to your .env (or dependencies). |
Beta Was this translation helpful? Give feedback.
-
Are you in China using VPN? I encounter the same issue currently and I think it is the VPN's problem. May I ask if you have found any way to solve this issue now? |
Beta Was this translation helpful? Give feedback.
@zjy-1998 console.log this
COINMARKETCAP_API_KEY
in the hardhat file and make sure it is not undefined there, and if it is not undefined then try to specify here like this;If still, you don't see the price then try it the next day or after some time, because sometimes etherscan and coinmarketcap do these fetching issues.