Don't initialize variables with default value #122
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
pmerkleplant
Vulnerability details
Impact
If a variable is not initialized, it is assumed to have the default value.
Explicitly initalizing a variable with its default value costs unnecessary gas.
For more info, see Mudit Gupta's Blog at point "No need to initialize variables with default values".
Therefore, following variable declarations could be refactored:
Tools used
grep
The text was updated successfully, but these errors were encountered: