The TwentyOne.t.sol
does not pass all tests as the test_Call_PlayerWins
reverts.
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.
reverting / incomplete test.
manual review - running forge test
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..
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.