eth-gas-reporter icon indicating copy to clipboard operation
eth-gas-reporter copied to clipboard

Change Int to Float for gas gwei representation

Open tempest-sol opened this issue 2 years ago • 1 comments

https://github.com/cgewecke/eth-gas-reporter/blob/27ba98a23b6fc4d4deaebed7aff6e284791781c9/lib/codechecksReport.js#L41

Arbitrum L2 gas is currently under 1, at 0.38, by default this parses as integer 0 (rounding down), thus making the gas reported show nothing as the cost.

Suggestion: Change parseInt to parseFloat to allow these scenarios.

tempest-sol avatar Mar 12 '22 19:03 tempest-sol

+1 on this

giacomo-cc avatar Dec 21 '22 10:12 giacomo-cc

Hi! eth-gas-reporter is being deprecated in favor of hardhat-gas-reporter.

In the latest version at Hardhat, sub-gwei gas prices are fully supported:

https://github.com/cgewecke/hardhat-gas-reporter/releases/tag/v2.0.0

cgewecke avatar Mar 17 '24 15:03 cgewecke