You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When subscriptions expire, the rent from the deposit vault and metadata accounts are withdrawn, so if someone wants to use that subscription again, they need to reinitialize it. To differentiate subscriptions of the same type (i.e. payee, amount, duration) we store a count in a separate account and increment it every time we create a new subscription. If we reinitialize a subscription, we don't want to increment.
2 things to do
Have count be passed into the instruction as an argument
If count != latest count, don't increment
The text was updated successfully, but these errors were encountered:
When subscriptions expire, the rent from the deposit vault and metadata accounts are withdrawn, so if someone wants to use that subscription again, they need to reinitialize it. To differentiate subscriptions of the same type (i.e. payee, amount, duration) we store a count in a separate account and increment it every time we create a new subscription. If we reinitialize a subscription, we don't want to increment.
2 things to do
The text was updated successfully, but these errors were encountered: