The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Avoid to use low level calls.
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
{
"rules": {
"avoid-low-level-calls": "warn"
}
}
anyAddress.call{value: 1 ether}("");
anyAddress.call(code);
a.callcode(test1);
a.delegatecall(test1);
anyAddress.call.value(code)();
This rule was introduced in Solhint 1.1.6