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

Feature Request: Include sum of deployment gas in output #122

Open
wattsyart opened this issue Jul 25, 2022 · 2 comments
Open

Feature Request: Include sum of deployment gas in output #122

wattsyart opened this issue Jul 25, 2022 · 2 comments

Comments

@wattsyart
Copy link

I'm routinely "gas golfing" large projects, and one thing I always need to do is dump out the gas report and manually sum it to get a total gas cost for every deployed contract to check if the experiment is reducing overall cost or not.

I can emit to a file and use regex to do this, but it would be nice to include a configuration switch that adds the total deployment gas usage to the output itself.

@andreujuanc
Copy link

Indeeed, it would be a great addition!!
Have you found a workaround? besides scripting?

@wattsyart
Copy link
Author

@andreujuanc No workaround besides custom scripting, unfortunately.

I wrote a hardhat task for my project that:

Code is here: https://github.com/wattsyart/cryptoadz-chained/blob/main/tasks/tasks.js#L171

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

2 participants