Gas Optimization in Solidity: 10 tips

  Рет қаралды 13,508

EatTheBlocks

EatTheBlocks

Күн бұрын

Пікірлер
@cryptocalc6884
@cryptocalc6884 2 жыл бұрын
Amazing channel -- thanks a lot. Thanks also for the quick summary in the description
@shouryamkumar3369
@shouryamkumar3369 2 жыл бұрын
The most clear playlist on the ethereum gas I could find. Thanks Julian for all the effort you put in!
@qasimraheemkhokhar
@qasimraheemkhokhar 3 жыл бұрын
thanks, i was stuck, turn on optimizer of solidity compiler
@magnetto90
@magnetto90 2 жыл бұрын
You deserve more subscribers
@EatTheBlocks
@EatTheBlocks 2 жыл бұрын
thx!
@ghasemsadeghi5175
@ghasemsadeghi5175 4 жыл бұрын
Nice tips. I think it would be great if you can show all of these tips in a real DAPP example.
@rajasmasala
@rajasmasala 3 жыл бұрын
See uni v2 actual code
@despareint
@despareint 4 жыл бұрын
Is it recommended to use the Remix IDE's optimization feature?
@EatTheBlocks
@EatTheBlocks 4 жыл бұрын
If you deploy to production.
@despareint
@despareint 4 жыл бұрын
@@EatTheBlocks Some are suggesting to turn it off (Remix optimization) in production. So I'm a bit confused at this point.
@EatTheBlocks
@EatTheBlocks 4 жыл бұрын
@@despareint why are they suggesting this? You want code that is gas optimized for production.
@nikolais6452
@nikolais6452 2 жыл бұрын
@@EatTheBlocks It used to have problems, i think in solidity 0.5.0, so people still think this is the same
@ktzleaps6104
@ktzleaps6104 3 жыл бұрын
you're awesome man really
@EatTheBlocks
@EatTheBlocks 3 жыл бұрын
haha thx :)
@kishlorn3299
@kishlorn3299 3 жыл бұрын
Your optimizer settings are wrong at 3:46 Optimizer settings should be under under settings, as in: compilers.solc.settings.optimizer:{...}
@nikolais6452
@nikolais6452 2 жыл бұрын
Only if you are not using a EVM framework, like truffle, hardhat or forge
@bikashjena8167
@bikashjena8167 4 жыл бұрын
I have a doubt...after deployment of a contract on to a test network, first time deployment is successful and then after when I did deploy again on the test network it said transaction may fail exceeded gas limit, VM execution error
@EatTheBlocks
@EatTheBlocks 4 жыл бұрын
its possible, gas requirements change depending on whats in the storage of the smart contract the and input provided to the function.
@bikashjena8167
@bikashjena8167 4 жыл бұрын
@@EatTheBlocks Thanks for the reply.. How can I solve this error.. because I am preparing a contract that will store Blacklisted IP address... It consists of both IPv4 and IPv6 types of addresses.
@EatTheBlocks
@EatTheBlocks 4 жыл бұрын
@@bikashjena8167 increase gas limit on your transaction
@bikashjena8167
@bikashjena8167 4 жыл бұрын
@@EatTheBlocks thanks for the suggestion man...
How To Become A Blockchain Developer In 2023?
18:05
EatTheBlocks
Рет қаралды 165 М.
Optimising Code - Computerphile
19:43
Computerphile
Рет қаралды 151 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 43 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 10 МЛН
Top 5 Tricks For Gas Optimizations in Solidity
6:54
EatTheBlocks
Рет қаралды 4,1 М.
Spend Less Gas - Solidity Gas Optimization [Deep Dive]
13:12
Moralis for Developers
Рет қаралды 6 М.
10 Tips to become a Solidity EXPERT
7:35
EatTheBlocks
Рет қаралды 9 М.
Unlimited Size Contracts Using Solidity
31:26
Ethereum Foundation
Рет қаралды 1,3 М.
THE Top 10 Web3/Smart Contract Developer Tools you NEED for 2022
21:22
Patrick Collins
Рет қаралды 25 М.
The 3 ways to upgrade smart contracts (Ethereum, BSC, Polygon)
21:36