You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a variable is not initialized, it is assumed to have the default value.
Explicitly initializing 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:
./factories/PieFactoryContract.sol:88: for (uint256 i = 0; i < _tokens.length; i++)
./facets/Call/CallFacet.sol:55: for (uint256 i = 0; i < callStorage.callers.length; i++)
./facets/Call/CallFacet.sol:82: for (uint256 i = 0; i < _targets.length; i++)
./facets/Call/CallFacet.sol:95: for (uint256 i = 0; i < _targets.length; i++)
./facets/Basket/BasketFacet.sol:321: for (uint256 i = 0; i < tokens.length; i++)
Tools used
grep
The text was updated successfully, but these errors were encountered:
Handle
pmerkleplant
Vulnerability details
If a variable is not initialized, it is assumed to have the default value.
Explicitly initializing 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: