Solhint

Solhint

Community Analyzer

Check result of send call SOLHINT-W1042

Security
Major

Check result of send call.

Bad Practice

  1. result of "send" call ignored
x.send(55);

Recommended

  1. result of "send" call checked with if statement
if(x.send(55)) {}
  1. result of "send" call checked within a require
require(payable(walletAddress).send(moneyAmount), "Failed to send moneyAmount");

Learn more

check-send-result on Solhint's documentation.