Unused Named Return #105
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
ye0lde
Vulnerability details
Impact
Removing unused named return variables can reduce gas usage and improve code clarity.
Proof of Concept
Unused named return:
https://github.com/code-423n4/2021-11-nested/blob/f646002b692ca5fa3631acfff87dda897541cf41/contracts/NestedFactory.sol#L69
Tools Used
Visual Studio Code, Remix
Recommended Mitigation Steps
Remove the unused named return
The text was updated successfully, but these errors were encountered: