| warning | This is a dynamically generated file. Do not edit manually. |
|---|---|
| layout | default |
| title | check-send-result | Solhint |
The {"extends": "solhint:recommended"} property in a configuration file enables this rule.
Check result of "send" call.
This rule accepts a string option for rule severity. Must be one of "error", "warn", "off". Defaults to warn.
{
"rules": {
"check-send-result": "warn"
}
}- Rule will rise false positive on this:
bool success = walletAddress.send(amount); require(success, "Failed to send"); - Rule will skip ERC777 "send" function to prevent false positives
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