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

The `ERROR_TRANSFER_FAILED` is never used

Summary

There is an error that is never used.

Vulnerability Details

The ERROR_TRANSFER_FAILED is defined but never used. Maybe it is supposed to be used in fulfillRandomWords function in case of transfer fail.

Impact

There is no check in the fulfillRandomWords function and no error will be showed if the transfer of the reward fails.

Tools Used

Manual Review

Recommendations

Add a check in fulfillRandomWords for successfully transfer of the reward and use the error ERROR_TRANSFER_FAILED in case of the failed transfered or remove the error declaration if it will be never used.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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