Skip to content

Add Test: submit_result with Winner::Player2 pays correct balances #297

@yahia008

Description

@yahia008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programtestingTest coverage issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions