Skip to content

Conversation

@ANISH-SR
Copy link
Contributor

@ANISH-SR ANISH-SR commented Jan 1, 2026

Summary of Changes

  • CloseAccountUser: Added a strict check enforcing user.device_pk == device_account.key, failing with ProgramError::InvalidAccountData on mismatch.
  • Authorization: Existing user.owner == owner_account.key validation remains unchanged.
  • Ensures the user being closed is actually attached to the provided device account.

Testing Verification

  • Existing tests pass

Fixes #2216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify that user.device_pk == device_account.key in CloseAccountUser

1 participant