TwentyOne

First Flight #29
Beginner FriendlyGameFiFoundrySolidity
100 EXP
View results
Submission Details
Severity: medium
Valid

The first player will not be able to get the reward

Summary

The first player will not receive the reward due to lack of funds.

Vulnerability Details

The contract does not funded in a constructor, neither it has any function to receive funds. So, if the first player wins, the player will not get the reward because the contract has only the player's bet 1 eth.

Impact

The first player will not get reward.

Tools Used

Manual review

Recommendations

Add functions to receive funds and fund the contract on deploy.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Contract Lacks Mechanism to Initialize or Deposit Ether

Support

FAQs

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