Priority: Medium
Estimated Time: 15 minutes
Description:
test_payout_winner only tests Winner::Player1. There is no test verifying that Winner::Player2 correctly transfers the full pot to player2 and leaves player1 with their post-deposit balance.
Tasks:
- Create match with
stake_amount = 100, both players start with 1000
- Both players deposit
- Call
submit_result with Winner::Player2
- Assert player2 balance is
1100 and player1 balance is 900
Priority: Medium
Estimated Time: 15 minutes
Description:
test_payout_winneronly testsWinner::Player1. There is no test verifying thatWinner::Player2correctly transfers the full pot to player2 and leaves player1 with their post-deposit balance.Tasks:
stake_amount = 100, both players start with1000submit_resultwithWinner::Player21100and player1 balance is900