Content pfp
Content
@
https://warpcast.com/~/channel/solidity
0 reply
0 recast
0 reaction

Rahul Gupta pfp
Rahul Gupta
@rahul7668gupta.eth
๐Ÿงต1/5 ๐Ÿš€ #100DaysOfSolidity #Day10 When it comes to gas optimization in Solidity, the choice between `require` statements and custom revert errors can make a big difference. Have you ever wondered which one is more efficient? ๐Ÿค”ย #SolidityDev #GasOptimization
4 replies
0 recast
0 reaction

Rahul Gupta pfp
Rahul Gupta
@rahul7668gupta.eth
๐Ÿงต2/5 ๐Ÿš€ #100DaysOfSolidity #Day10 `require` statements are simple to use, but they store the error message as a string, which is not very gas-efficient. Custom revert errors, introduced in Solidity 0.8.4, are more gas-optimized as they are ABI-encoded. ๐Ÿ’ฐย #SolidityDev #GasOptimization
0 reply
0 recast
0 reaction