cgewecke / hardhat-gas-reporter

Gas Usage Analytics for Hardhat
MIT License
411 stars 57 forks source link

Gas report file corrupted #142

Closed gokulstevee closed 8 months ago

gokulstevee commented 1 year ago

When I generate gas report file using hardhat-gas-reporter package...I get the resulted file as I shown below I'm using ubuntu 20.04 LTS on WSL2

gasReporter - StakingToken  WSL_ Ubuntu  - Visual Studio Code 22-01-2023 15_39_47

6be709c0 commented 1 year ago

Make sure to set the noColors to true:

    gasReporter: {
        enabled: true,
        currency: "EUR",
        outputFile: "gas-report.txt",
        noColors: true,
        coinmarketcap: process.env.COINMARKETCAP_API_KEY,
        token: "ETH",
    },