Content
@
https://warpcast.com/~/channel/solidity
0 reply
0 recast
0 reaction
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
@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