Skip to content

Fix: deposit event not emitted when match transitions to Active state #291

@yahia008

Description

@yahia008

Priority: Low
Estimated Time: 30 minutes

Description:
When the second player deposits and the match transitions from Pending to Active, no match_activated event is emitted. Frontends cannot detect when a match is ready to start without polling get_match.

Tasks:

  • Emit a ("match", "activated") event inside deposit when m.state transitions to Active
  • Include match_id in event data
  • Add test asserting the event is emitted only on the second deposit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions