TwentyOne

First Flight #29
Beginner FriendlyGameFiFoundrySolidity
100 EXP
View results
Submission Details
Severity: high
Invalid

The player has to pay before start Game.

Summary

Inside the start game function, the player has to send 1 ether to this contract.

Vulnerability Details

Even if the player loses, he does not lost 1ether.

Impact

Even if the player loses, he does not lost 1ether.

Tools Used

Recommendations

That code must be added in startGame function.

address(this).transfer(1 ether);
Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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