buidler-gas-reporter doesn't work out of box with openzeppelin proxies, but eth-gas-reporter do
See original GitHub issueIn my tests, running the eth-gas-reporter out of box with truffle in a project that uses openzeppelin proxies just works fine, besides the warnings in the advanced section.
But running the same tests in a buidler project, using the buidler-gas-reporter plugin, doesn’t report any function names.
I’ve created a small project that reproduces this issue; it is configured both with eth-gas-reporter and buidler-gas-reporter:
https://github.com/wmitsuda/reproduce-buidler-gas-reporter
If you run it using npm run gas-reporter-test
it works fine using truffle + eth-gas-reporter under the hood.
If you run it using npm run buidler-reporter-test
, it uses buidler + buidler-gas-reporter and doesn’t show any function names.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
buidler-gas-reporter doesn't work out of box with openzeppelin ...
In my tests, running the eth-gas-reporter out of box with truffle in a project that uses openzeppelin proxies just works fine, besides the...
Read more >Using eth-gas-reporter with OpenZeppelin SDK proxies
But there is no solution out-of-box apparently. Does anyone have a walkthrough for making it work? 1 Like. Eth-gas-reporter with Proxies ...
Read more >Eth-gas-reporter with Proxies using Buidler - Upgrades
Hi @abcoathup I'm facing the same issue @wmitsuda described a while ago (Using eth-gas-reporter with OpenZeppelin SDK proxies).
Read more >Following Step by Step Tutorial for Hardhat and get Uncaught ...
When I do. (await box.retrieve()).toString(). It gives me the error. Uncaught ProviderError: out of gas at EthersProviderWrapper.send ...
Read more >Can not deploy contract with proxy on the Optimism - Upgrades
It works no problem on the testnets, but I got an error about cannot estimate gas when I tried to deploy contracts on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@wmitsuda @nmclrn thanks for the prompt replies.
@nmclrn you were right, OZ upgrades is a red herring and I wasn’t properly adding the
--network localhost
, despite being well indicated in this repo documentation.@wmitsuda @vnavascues The demo repo won’t run tests successfully at all for me, let alone report gas, but it looks like the
npm run buidler-reporter-test
command might be missing the--network localhost
option recommended here, just in case that’s the issue and the OZ stuff was a red herring.