Skip to content
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

eth-gas-reporter with Hardhat multiple compiler versions #133

Open
R-Santev opened this issue Nov 10, 2022 · 2 comments
Open

eth-gas-reporter with Hardhat multiple compiler versions #133

R-Santev opened this issue Nov 10, 2022 · 2 comments

Comments

@R-Santev
Copy link

R-Santev commented Nov 10, 2022

Hello,

I have a Hardhat configuration with multiple compiler versions, but I can't see how the hardhat-gas-reporter handles it. It would be fantastic if you provide more information about that.

My compiler setup:

solidity: {
    compilers: [
      {
        version: '0.8.17',
        settings: {
          optimizer: {
            enabled: true,
            runs: 800,
          },
        },
      },
      {
        version: '0.5.4',
        settings: {
          optimizer: {
            enabled: true,
            runs: 200,
          },
        },
      },
    ],
  }

hardhat-gas-reporter output when I run all my tests (including contracts compiled with 0.8.17 and 0.5.4):

image

I tried to run only the tests for contracts compiled with 0.5.4 but the eth-gas-reporter output was the same:
image

I expected at least in this situation to see a different result, but no.

I really appreciate any help you can provide.

@ToJen
Copy link

ToJen commented Jan 5, 2023

Similar experience here

@zeGzD
Copy link

zeGzD commented Apr 30, 2024

It would be nice to have this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants