marigold-dev / chusai

MIT License
5 stars 0 forks source link

fix ticket duplication in inbox #35

Closed Hakimba closed 2 years ago

Hakimba commented 2 years ago

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.