cgewecke / eth-gas-reporter

Gas usage per unit test. Average gas usage per method. A mocha reporter.
MIT License
603 stars 94 forks source link

Deployments report not showing up (Truffle migrations) #238

Closed shinsuny closed 3 years ago

shinsuny commented 3 years ago

truffle-config.js:

  mocha: {
    reporter: 'eth-gas-reporter',
    reporterOptions : {
      'currency': 'JPY'
    }
  },

truffle version:

Truffle v5.1.63 (core: 5.1.63)
Solidity - 0.7.6 (solc-js)
Node v14.15.4
Web3.js v1.2.9

I could see Methods report with correct values but Deployments reports does not shows up.

I am on "eth-gas-reporter": "^0.2.20", "ganache-cli": "^6.12.2",

how could I fix this? Thanks !!

cgewecke commented 3 years ago

Ah! Very sorry, this is a bug introduced in 0.2.19. Thanks for reporting.

If you downgrade to 0.2.18 deployment data from migrations should show up in the report.

shinsuny commented 3 years ago

@cgewecke It works like charm on 0.2.18. Thanks for great work!!

where can i track this bug, so in order to upgrade to the latest version when fixed?

cgewecke commented 3 years ago

@sarveshwar-singh Oh good.

I will close this issue when I publish the fix - you should get a notification from Github via email since you opened it.

cgewecke commented 3 years ago

Should be fixed in the latest version: 0.2.21

Please just lmk if you're still seeing problems with this.

shinsuny commented 3 years ago

@cgewecke Yes its working on: eth-gas-reporter@0.2.21 Thanks !!