removeFactory
has ==true
comparison in require statement
#63
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
loop
Vulnerability details
The
removeFactory
has an unnecessary==true
comparison in its require statement. Since require already checks if the condition istrue
, there is no need for it to be compared.Impact
Removing
== true
saves a tiny amount of gas ifremoveFactory
is called.Proof of Concept
https://github.com/code-423n4/2021-11-nested/blob/main/contracts/NestedAsset.sol#L142
The text was updated successfully, but these errors were encountered: