Conversation
Reduce top padding from platform-specific values (73px/29px iOS, 18px Android) to a consistent 9px above safe area on both iOS and Android to align with home page content spacing.
…or theme consistency
…g wallet When deleting an imported wallet, the code was deleting the legacy 'pin' key that may still be used by older wallets that haven't migrated to wallet-specific PINs. This caused users to lose their existing PIN unexpectedly and be prompted to set up a new PIN. The fix ensures only wallet-specific PIN keys are deleted, preserving the legacy 'pin' key for backward compatibility with older wallets.
PR Review Summary✅ Security Fix - APPROVEDFile: The security fix is correct and critical. By removing the legacy Before: 'pin' // Would delete shared global PINAfter: // REMOVED: 'pin' - legacy global key may be used by other wallets✅ UI Improvements - APPROVEDTheme Consistency (
Header Padding (
|
Add comment noting that after all wallets migrate to wallet-specific PIN keys, the legacy 'pin' key can be safely removed.
PR Review Summary✅ Security Fix - APPROVEDFile: The security fix correctly addresses the PIN deletion vulnerability by only removing wallet-specific PIN keys ( ✅ UI Improvements - APPROVEDTheme Consistency (
Header Padding (
VerdictApprove - The security fix is critical and correctly implemented. UI improvements are clean and follow project conventions. |


Summary
This PR includes a critical security fix along with minor UI improvements.
Security Fix: PIN Deletion Vulnerability
Problem: When deleting an imported wallet, the app was deleting the legacy global PIN key (
'pin') that may still be used by older wallets. This caused users to unexpectedly lose their PIN authentication on their original wallet.Root Cause: Older wallets created before the wallet-specific PIN migration used a shared global PIN storage key. When any wallet was deleted, this global key was deleted along with wallet-specific keys, affecting other wallets that relied on it.
User Impact: Users with older wallets would be prompted to set up a new PIN after deleting a temporary/imported wallet, even though their original wallet already had a PIN configured.
Fix: Modified
deleteAllWalletData()insrc/wallet/index.jsto only delete wallet-specific PIN keys (pin-{hash}andpin {mnemonic}), preserving the legacy'pin'key for backward compatibility.UI Improvements
text-gradclass to icons in Get BCH and Spend BCH pages for theme consistencyFiles Changed
src/wallet/index.js- Security fix for PIN deletionsrc/pages/apps/get-bch.vue- Theme consistencysrc/pages/apps/spend-bch.vue- Theme consistencysrc/components/header-nav.vue- Padding fixTesting Notes
To test the security fix:
Fixes security vulnerability reported via user feedback.