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
refactor: Simplify wallet lock state handling in CreateWalletActivity
Simplify the lock state tracking logic in CreateWalletActivity::finish()
since mixing-only unlock state is impossible for newly created wallets.
Changes:
- Use getEncryptionStatus() instead of tracking multiple state variables
- Replace was_locked and was_unlocked_for_mixing with single was_locked check
- Remove restoreWalletLockState() helper method - inline simple lock call
- Add comment explaining why mixing state is impossible at creation time
Before: Tracked both was_locked and was_unlocked_for_mixing states
After: Only track was_locked since new wallets can only be:
* Unencrypted (unlocked)
* Encrypted and locked (need to unlock to show mnemonic)
This is clearer and removes unnecessary complexity for an impossible state.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments