There is no check if dealerHand and playerHand get equal points.
In function call() where we compare both dealerHand and playerHand we have no check if they both get the same points.
If we recieve a equal result in points will be couted as a win for the dealer.
Manuel review
First we need to add the check for dealerHand > playerHand, because now It's just left as alternative result
if both dealerHand > 21 and playerHand > dealerHand fail. After doing this the only possible result left is a tie between dealer and player. A new event needs to be created for this result:
Also we need a new function to clean decks and send 1 ether back to player:
And finally the check will look like:
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.