I used coinmarketcap and hardhat-gas-reporter to get usd price,but I run “yarn hardhat test”,and the gas-report.txt have not usd price,this is my config:
gasReporter: {
enabled: true,
outputFile: "gas-report.txt",
noColors: true,
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY,
token: "ETH",
},
this is version of package.json:”hardhat-gas-reporter”: “^1.0.7″,”ethers”: “^6.4.0″,”hardhat”: “^2.22.4”,
I suspect it may be an issue with the hardhat gas reporter version or with the Coinmarketcap network
New contributor
hao yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.