Skip to content

Latest commit

 

History

History
14 lines (6 loc) · 1015 Bytes

Deekshith99-G.md

File metadata and controls

14 lines (6 loc) · 1015 Bytes

[G-1]Splitting require() statment that uses && Operator saves gas

once through this issue which describes the fact that there is a larger deployment gas cost, but with enough runtime calls, the change ends up being cheaper by 3 gas.

Here is the 1 instance of the issue

Permalink of the code

[G-2} USE A MORE RECENT VERSION OF SOLIDITY

Use a solidity version of at least 0.8.2 to get simple compiler automatic inlining , Use a solidity version of at least 0.8.3 to get better struct packing and cheaper multiple storage reads Use a solidity version of at least 0.8.4 to get custom errors, which are cheaper at deployment than revert()/require() strings Use a solidity version of at least 0.8.10 to have external calls skip contract existence checks if the external call has a return value