The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Check return value of low-level calls (call, staticcall, delegatecall).
This rule accepts a string option for rule severity. Must be one of “error”, “warn”, “off”. Defaults to warn.
{
"rules": {
"no-unchecked-calls": "warn"
}
}
(bool success, ) = addr.call(data);
(bool success, bytes memory result) = addr.call(data);
if(addr.call(data)) {}
require(addr.call(data));
assert(addr.call(data));
addr.call(data);
addr.staticcall(data);
addr.delegatecall(data);
addr.call{value: 1 ether}("");
addr.call.value(1)();
This rule was introduced in the latest version.