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

in selectWinner, Should call _safeMint before sending ether

Summary

The NFT is minted after the ether is sent to the winner.

Vulnerability Details

There is no real potential exploit here because the .call is assured to revert if the transfer fails. and there should be no reentrancy issues because of this.

Impact

there is little to no impact. Just a matter of clean code and following best practices.

Tools Used

Manual Review

Recommendations

It is recommended to follow the Check-Effects-Interaction pattern and perform state changes before sending ether.

Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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

Give us feedback!