Skip to content

Add Ticket Verification and Usage Tracking Function#198

Open
mubarak23 wants to merge 1 commit intov2_developfrom
ft_optimize_verify_ticket
Open

Add Ticket Verification and Usage Tracking Function#198
mubarak23 wants to merge 1 commit intov2_developfrom
ft_optimize_verify_ticket

Conversation

@mubarak23
Copy link
Copy Markdown
Owner

This PR introduces a new private function _verify_ticket_event that verifies the ownership and usage status of an event ticket and marks it as used.

🔧 Changes Introduced
Implements _verify_ticket_event method within the contract.

Verifies that:

The caller is the rightful owner of the ticket.

The ticket has not already been used.

Marks the ticket as used after successful verification.

Emits a TicketUsed event containing:

ticket_id

event_id

user (caller address)

@mubarak23 mubarak23 self-assigned this Jul 15, 2025
@mubarak23 mubarak23 requested a review from Oshioke-Salaki July 15, 2025 16:57
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.

1 participant