Explicit initialization with zero not required #126
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
Dravee
Vulnerability details
Impact
Explicit initialization with zero is not required for variable declaration because uints are 0 by default. Removing this will reduce contract size and save a bit of gas.
Proof of Concept
Instances include:
Tools Used
Manual Analysis
Recommended Mitigation Steps
Remove explicit initialization with zero. It's already done at several places and in most for-loops, which means that this optimization would be consistent with the overall code style.
The text was updated successfully, but these errors were encountered: