since I tested the inbox code only with dummy tickets, I didn't see all the ticket duplication errors in the code, which @zamrokk and I noticed when trying to deploy the contract.
The main problem comes from the fact that we have a ticket in the state of the inbox, so when we pass the state to different functions, there is duplication, so we deconstruct the state to use it.
since I tested the inbox code only with dummy tickets, I didn't see all the ticket duplication errors in the code, which @zamrokk and I noticed when trying to deploy the contract.
The main problem comes from the fact that we have a ticket in the state of the inbox, so when we pass the state to different functions, there is duplication, so we deconstruct the state to use it.