NestedFactory: _submitOrder one mload can be avoided #6
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
Handle
PierrickGT
Vulnerability details
Impact
In _submitOrder, we load in memory the return parameter
tokens
fromdecodeDataAndRequire
but this variable isn't used afterward.Proof of Concept
Avoid loading
tokens
fromdecodeDataAndRequire
to save on gas and gain in code clarity.https://github.com/code-423n4/2021-11-nested/blob/cbd39fe7d76ed8c84eb767a5f3b6eba83e034656/contracts/NestedFactory.sol#L379
Recommended Mitigation Steps
The following change is recommended.
The text was updated successfully, but these errors were encountered: