gas-strict-inequalities
Description
Suggest Strict Inequalities over non Strict ones
Options
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
Example Config
{
"rules": {
"gas-strict-inequalities": "warn"
}
}
Notes
- Strict inequality does not always saves gas. It is dependent on the context of the surrounding opcodes
- source 1 of the rule initiative (see Less/Greater Than vs Less/Greater Than or Equal To)
- source 2 of the rule initiative
Examples
This rule does not have examples.
Version
This rule was introduced in Solhint 4.5.0
Resources