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

`fulfillRandomWords()` call may revert and the contract logic will be blocked.

Summary

The fulfillRandomWords() call may revert and the contract logic will be blocked.

Vulnerability Details

It is recommended by chainlink that the fulfillRandomWords() callback should simply store the randomness and taking more complex follow-on actions in separate contract calls made by contract owner or users. Because in case of revert VRF service will not attempt to call it a second time and contract functionality will be blocked.

Impact

High

Tools Used

Vs Code.

Recommendations

Remove complex logic from fulfillRandomWords() and make another function for receiving of reward for winner.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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