Skip to content

Implement buy_ticket event state validation#236

Open
Meshmulla wants to merge 2 commits intoWeb3Novalabs:mainfrom
Meshmulla:main
Open

Implement buy_ticket event state validation#236
Meshmulla wants to merge 2 commits intoWeb3Novalabs:mainfrom
Meshmulla:main

Conversation

@Meshmulla
Copy link
Copy Markdown
Contributor

closes #194

This PR adds validation to the buy_ticket flow to ensure tickets can only be purchased for valid and active events.

Changes Included:
Validates event existence (EventNotFound)
Ensures event is active before purchase
Checks event deadline to prevent purchases for expired events (EventExpired)
Added unit tests covering failure cases

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

@Meshmulla Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Akshola00
Copy link
Copy Markdown
Contributor

@Meshmulla pls resolve conflicts

@Akshola00
Copy link
Copy Markdown
Contributor

@Meshmulla update on this

@Meshmulla
Copy link
Copy Markdown
Contributor Author

@Meshmulla update on this

Resolved chief

@Akshola00
Copy link
Copy Markdown
Contributor

@Meshmulla checks are falling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement buy_ticket event state validation

2 participants