TwentyOne

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

failing test for test_Call_PlayerWins.

Summary

The TwentyOne.t.sol does not pass all tests as the test_Call_PlayerWins reverts.

Vulnerability Details

test_Call_PlayerWins reverts as the contract is trying to send 2ETH to the player but only has the 1ETH initial deposit from the player.

Impact

reverting / incomplete test.

Tools Used

manual review - running forge test

Recommendations

add vm.deal(address(twentyOne), 1); to setUp() function.

note - expect this is supposed fail is on purpose as a hint at the more severe vulnerability possibly..

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

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