The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.
Check result of “send” call.
This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.
{
"rules": {
"check-send-result": "warn"
}
}
bool success = walletAddress.send(amount); require(success, "Failed to send");
if(x.send(55)) {}
require(payable(walletAddress).send(moneyAmount), "Failed to send moneyAmount");
x.send(55);
This rule was introduced in Solhint 2.0.0-alpha.0