Hi Bro wanted to know that if in a solidity language smart contract if optimization is enabled (with 200 trials) what does it exactly mean at some people are claiming that if optimization is kept yes in smart contract then the creator can withdraw the the public funds available in smart contract and if the optimization is kept off then creator can not withdraw the public funds deposited in a smart contract. How true is this. Pls advise. Thank you!
no, i just did a check. looking up the variable is the same regardless of it being a property of _arrayFunds, or if it is a temporary variable. in fact, creating the temp variable costs 5 more gas
We need more videos like this dealing with optimisations!
First Dz gamer here 🇩🇿🙏🙏🇩🇿✌️ ALG 🇩🇿🇩🇿
ty ty very much! learning lots
Its always good to learn something new 👍
good one thanks moralis
Hahaha, is a very good explanation. Thanks
Thanks for the feedback ser
Hi Bro wanted to know that if in a solidity language smart contract if optimization is enabled (with 200 trials) what does it exactly mean at some people are claiming that if optimization is kept yes in smart contract then the creator can withdraw the the public funds available in smart contract and if the optimization is kept off then creator can not withdraw the public funds deposited in a smart contract. How true is this. Pls advise.
Thank you!
doing this will save in gas but limits you with stack too deep errors, solidity is a tough language for how simple it is lol
Thank you for the feedback on it
Bro use Hardhat+GasReporter )
Wouldn't storing _arrayFunds.length in a temporary variable and using that in the for loop be even even more optimised? :p
no, i just did a check. looking up the variable is the same regardless of it being a property of _arrayFunds, or if it is a temporary variable. in fact, creating the temp variable costs 5 more gas