warning | layout | title |
---|---|---|
This is a dynamically generated file. Do not edit manually. |
default |
gas-calldata-parameters | Solhint |
Suggest calldata keyword on function arguments when read only
This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to warn.
{
"rules": {
"gas-calldata-parameters": "warn"
}
}
- Only applies for external functions when receiving arguments with [memory] keyword
- This rule makes a soft check to see if argument is readOnly to make the suggestion. Check it manually before changing it.
- source 1 of the rule initiative (see Calldata vs Memory)
- source 2 of the rule initiative
This rule does not have examples.
This rule was introduced in Solhint 4.5.0