Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

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

Closed
R-Santev opened this issue Nov 10, 2022 · 1 comment
Closed

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

R-Santev opened this issue Nov 10, 2022 · 1 comment

Comments

@R-Santev
Copy link

Hello,

I have a Hardhat configuration with multiple compiler versions, but I can't see how the eth-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,
          },
        },
      },
    ],
  }

eth-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.

@R-Santev
Copy link
Author

The issue is moved here

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

No branches or pull requests

1 participant