solhint

gas-struct-packing

Recommended Badge Category Badge Default Severity Badge warn

The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.

Description

Suggest to re-arrange struct packing order when it is inefficient

Options

This rule accepts a string option for rule severity. Must be one of “error”, “warn”, “off”. Defaults to warn.

Example Config

{
  "rules": {
    "gas-struct-packing": "warn"
  }
}

Notes

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 4.5.0

Resources