TicketBroker.setTicketValidityPeriod() can require non-zero input in order to prevent the ticket validity period from ever being set to 0 which would mean that tickets are always invalid. In practice, if this mistake is ever made it could be immediately corrected by calling the function with a non-zero value, but adding a require statement can be an added precaution.
TicketBroker.setTicketValidityPeriod()
can require non-zero input in order to prevent the ticket validity period from ever being set to 0 which would mean that tickets are always invalid. In practice, if this mistake is ever made it could be immediately corrected by calling the function with a non-zero value, but adding a require statement can be an added precaution.