Closed Obyka closed 7 months ago
I'm not sure why this wasn't working for you, nothing jumps out as wrong in your config. I just now used:
gasReporter: {
coinmarketcap: process.env.CMC_API_KEY,
token: "MATIC",
gasPriceApi: "https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice"
}
and got:
which is pretty close to polygonscan rn:
Closing
I'm trying to use hardhat-gas-reporter with Polygon. To do so, I have :
.env
filehardhat.config.js
to use MATIC and my country's currencyWhen I generate the report, the token and gas prices are still based on Ethereum instead of Polygon Here is my config and my output:
Calls are being made to the coinmarket API, but with ETH as symbol.![image](https://user-images.githubusercontent.com/28777250/211580190-fd3e3d8a-c520-4629-a602-15f6f65946cc.png)
What I expected: An output with MATIC price and symbol