TwentyOne
contract does not have an initial fund and has no way to receive ethers, which might result in a player winning the game but being unable to collect their winnings.
TwentyOne
has no ethers when it deploys initially. Whether the first player wins the game or later players win all of the contract's ethers, players will be unable to receive their winnings.
Add some ethers to the contract at the beginning, and then test_Call_PlayerWins
test will pass.
Players who win the game will be unable to receive their money.
Foundry Test
Add receive()
to TwentyOne
contract to establish an initial fund.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.