question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

buidler-gas-reporter doesn't work out of box with openzeppelin proxies, but eth-gas-reporter do

See original GitHub issue

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 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
vnavascuescommented, Oct 12, 2020

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

1reaction
nmclrncommented, Oct 11, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found