Skip to content

Conversation

@lwin-kyaw
Copy link
Contributor

@lwin-kyaw lwin-kyaw commented Jan 30, 2026

Explanation

Adds the state-clearing methods in three controllers:
SubscriptionController.clearSubscriptionState
ClaimsController.clearClaimsState
ShieldController.clearShieldState
Each test verifies that calling the clear method resets the controller state to its default values.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Low risk: adds new opt-in clearState helpers that reset controller state; behavior is unchanged unless consumers call the new methods.

Overview
Adds a new public clearState() method to ClaimsController, ShieldController, and SubscriptionController that resets each controller’s state to the corresponding getDefault*ControllerState().

Updates unit tests to validate that calling clearState() fully clears previously populated state, and records the new API in each package’s CHANGELOG.md.

Written by Cursor Bugbot for commit 35a1d14. This will update automatically on new commits. Configure here.

@lwin-kyaw lwin-kyaw requested a review from a team as a code owner January 30, 2026 07:52
@lwin-kyaw lwin-kyaw requested a review from a team as a code owner January 30, 2026 07:54
@lwin-kyaw lwin-kyaw added area-shield Transaction Shield team-shield labels Jan 30, 2026
tuna1207
tuna1207 previously approved these changes Jan 30, 2026
@lwin-kyaw lwin-kyaw added this pull request to the merge queue Jan 30, 2026
Merged via the queue into main with commit 505bde6 Jan 30, 2026
306 checks passed
@lwin-kyaw lwin-kyaw deleted the feat/clear-subscriptions branch January 30, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-shield Transaction Shield team-shield

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants