Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.59 KB

gas-strict-inequalities.md

File metadata and controls

40 lines (32 loc) · 1.59 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
gas-strict-inequalities | Solhint

gas-strict-inequalities

Category Badge Default Severity Badge warn

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". Defaults 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