You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going through the tutorial, the gas optimization section in chapter 7(hardhat fundMe) shows us how it's possible to enhance gas savings in our smart contracts by understanding how to properly optimize our use of storage.
But on running the test and watching the gas reporter output, I observed that the cheaperWithdraw function is more expensive than the withdraw function. Which should not be the case.
Please is anyone observing the same?
Or is there any change in how Solidity calculates gas costs?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
GM devs.
Going through the tutorial, the gas optimization section in chapter 7(hardhat fundMe) shows us how it's possible to enhance gas savings in our smart contracts by understanding how to properly optimize our use of storage.
But on running the test and watching the gas reporter output, I observed that the cheaperWithdraw function is more expensive than the withdraw function. Which should not be the case.
Please is anyone observing the same?
Or is there any change in how Solidity calculates gas costs?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions