NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7.17k stars 1.37k forks source link

Update hardhat-gas-reporter dependency in hardhat-toolbox to the v2 #5555

Open ethos-vitalii opened 1 month ago

ethos-vitalii commented 1 month ago

Describe the feature

There's a known issue when hardhat-gas-reporter@2 and @nomicfoundation/hardhat-toolbox@5 are used together, there's an error while running any hardhat command:

Error HH201: Could not set param output for task gas-reporter:merge because its name is already used. For more info go to https://hardhat.org/HH201 or run Hardhat with --show-stack-traces

Issue: https://github.com/cgewecke/hardhat-gas-reporter/issues/229

The suggested workaround doesn't work for me.

It would be nice if the dependency of @nomicfoundation/hardhat-toolbox on hardhat-gas-reporter would be updated to the latest v2. The latest hardhat-gas-reporter@2.2.0 was released in May 2024 and it's pretty stable https://github.com/cgewecke/hardhat-gas-reporter/releases/tag/v2.2.0

Search terms

No response

kanej commented 1 month ago

This will imply a major bump to both toolboxes (ethers based and viem based).