Skip to content

Bump hardhat-gas-reporter from 2.2.1 to 2.3.0 #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 2, 2025

Bumps hardhat-gas-reporter from 2.2.1 to 2.3.0.

Release notes

Sourced from hardhat-gas-reporter's releases.

Etherscan API V2

This release migrates the plugin to Etherscan's new V2 API. (V1 will stop working in June 2025). A benefit of this change is that you'll only need a single API key to access any of the L1 and L2 networks Etherscan supports. As a result, the plugin's L1Etherscan and L2Etherscan options are being deprecated in favor of a new etherscan option.

Your existing L1Etherscan key will continue to work.

To simplify your reporter config as you make this upgrade, make the change below:

const config: HardhatUserConfig = {
  gasReporter: {
+    etherscan: "ABC...", // Same value as your old `L1Etherscan` key
-    L1Etherscan: "ABC...",  
-    L2Etherscan: "DEF..."
  }
}

(You'll continue to see price data even if you don't change your config. The plugin defaults to using your L1Etherscan key if it doesn't see the newer option set.)

What's Changed

Full Changelog: cgewecke/hardhat-gas-reporter@v2.2.3...v2.3.0

Small L2 Bug Fixes

This release fixes two small bugs affecting L2 gas reporting:

  • Sub-gwei L1 baseFees were being incorrectly rounded to zero when calculating OPStack chain costs.
  • Setting a gasPrice on the Hardhat Network config could result in test suites which emulate Arbitrum hanging (thanks to @​mattador1 for reporting and helping debug this)
  • We've also updated the viem package (which should resolve npm installation warnings for one of its transitive dependencies)

What's Changed

Full Changelog: cgewecke/hardhat-gas-reporter@v2.2.2...v2.2.3

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [hardhat-gas-reporter](https://github.com/cgewecke/hardhat-gas-reporter) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/cgewecke/hardhat-gas-reporter/releases)
- [Changelog](https://github.com/cgewecke/hardhat-gas-reporter/blob/master/CHANGELOG.md)
- [Commits](cgewecke/hardhat-gas-reporter@v2.2.1...v2.3.0)

---
updated-dependencies:
- dependency-name: hardhat-gas-reporter
  dependency-version: 2.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 2, 2025
@dependabot dependabot bot requested review from alexcos20 and trentmc as code owners June 2, 2025 01:56
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants