diff --git a/contracts/TicketManager.sol b/contracts/TicketManager.sol index 5d9369b..e6ed9cd 100644 --- a/contracts/TicketManager.sol +++ b/contracts/TicketManager.sol @@ -36,7 +36,7 @@ contract TicketManager is ERC1155, ReentrancyGuard, EventManager { uint256 remainingTickets = events[eventId].remainingTickets; if(numOfTickets > remainingTickets) revert ExceededTicketQtyLeft(); - if(msg.value < events[eventId].price * numOfTickets) revert InsufficientETHSent(); + if(msg.value != events[eventId].price * numOfTickets) revert InsufficientETHSent(); events[eventId].remainingTickets = remainingTickets - numOfTickets;