`> 0 can be replaced with != 0 for gas optimisation`
Closed this issue · 1 comments
code423n4 commented
Handle
defsec
Vulnerability details
Impact
!= 0 is a cheaper operation compared to > 0, when dealing with uint.
Proof of Concept
- Navigate to the following contracts.
Tools Used
Code Review
Recommended Mitigation Steps
Use "!=0" instead of ">0" for the gas optimization.
adrien-supizet commented
duplicate #8