cgewecke / hardhat-gas-reporter

Gas Usage Analytics for Hardhat
MIT License
409 stars 56 forks source link

Wrong gwei/gas value causes wrong tx price calculation #149

Closed AndriianChestnykh closed 7 months ago

AndriianChestnykh commented 1 year ago

It looks like that the Gas Reporter might take the same gwei/gas price for all the networks instead of using a specific network values.

It looks correct for the ETH mainnet:

image

But it the same for the Polygon, which is approx. 10 times lower than the real value:

image
cgewecke commented 7 months ago

It's necessary to configure the gasPriceAPI option to get network appropriate gas prices. It's documented in the README.