The function call() in TwentyOne.sol does not handle the case where the player's hand (playersHand) ties with the dealer's hand (dealersHand).
The issue arises in function call() during the comparison of the player's hand and the dealer's hand:
When playerHand equals dealerHand, the contract does not include a condition to handle the tie.
Unexpected game state
Manual Code Review.
Add Tie-Handling Logic: I recommend using standard Blackjack rules, where a tie typically results in the player retaining their bet. Modify the call() function to include an explicit condition for ties, ensuring that the player does not lose their bet in this scenario. For example:
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.