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
Description: cancel_subscription updates the subscription status in storage but a review of the module should confirm whether an event is published. If it is missing, add env.events().publish(...) so indexers can track cancellations without polling storage.
File(s): contracts/manage_hub/src/subscription.rs
Priority: Medium
Implementation & verification: Treat this as a protocol-safety change: check authorization, storage/ABI compatibility, ledger-time behavior, and emitted events before changing the implementation. Add a contract-level regression test for both the invalid and successful paths.
**Required change set **: Change the relevant contract implementation together with its focused contract test, and include a type, error, or deployment-script adjustment only when required.
cancel_subscriptionupdates the subscription status in storage but a review of the module should confirm whether an event is published. If it is missing, addenv.events().publish(...)so indexers can track cancellations without polling storage.contracts/manage_hub/src/subscription.rs