finished buyTicket and getEventTickets components

This commit is contained in:
ayomaska18
2024-10-26 12:13:37 +01:00
parent 7fa7911b88
commit 33392b4610
3 changed files with 7 additions and 4 deletions

View File

@@ -129,6 +129,7 @@ contract EventManager {
ticketCounter++;
// Update number of tickets sold
events[_eventId].tickets.push(ticketCounter - 1);
events[_eventId].ticketsSold++;
// Transfer FLR to event host