Unused local variables
Opened this issue · 2 comments
code423n4 commented
Handle
ye0lde
Vulnerability details
Impact
Removing the unused local variables improves code clarity.
Proof of Concept
Suggest changing to (uint256[] memory amounts,)
https://github.com/code-423n4/2021-11-nested/blob/f646002b692ca5fa3631acfff87dda897541cf41/contracts/NestedFactory.sol#L379
https://github.com/code-423n4/2021-11-nested/blob/f646002b692ca5fa3631acfff87dda897541cf41/contracts/NestedFactory.sol#L410
Tools Used
Visual Studio Code, Remix
Recommended Mitigation Steps
Remove the unused variables - See POC
maximebrugel commented
alcueca commented
Taking this as main.