Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: medium
Invalid

Use `safeTransfer` instead of `sendValue`

Summary

Avoid using sendValue, which can lead to unpredictable results.

Vulnerability Details

sendValue is a low-level call that does not throw an exception when attempting to send token to the destination address, but instead returns a Boolean value indicating whether the delivery was successful. This means that if the send fails, it does not abort the current transaction, which can lead to some unpredictable results.

Impact

May result in loss of player funds.

Tools Used

Manual Review

Recommendations

Use safeTransfer instead of sendValue

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: User experience and design improvement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!