Fix db getting deleted on iOS (#2736)

* Fix db getting deleted on iOS

* Fix db getting deleted on iOS and add a patch for users who updated

* remove prints [skip ci]
This commit is contained in:
Omar Hatem
2025-12-15 04:49:51 +02:00
committed by GitHub
parent 1844405a43
commit aea855d023
11 changed files with 36 additions and 15 deletions
+7
View File
@@ -436,6 +436,13 @@ abstract class NanoWalletBase
final derivationInfo = await walletInfo.getDerivationInfo();
derivationInfo.derivationType ??= derivationType;
if (derivationInfo.derivationType == DerivationType.unknown) {
if (data?['derivationType'] != null) {
derivationInfo.derivationType = derivationType;
} else {
derivationInfo.derivationType = DerivationType.bip39;
}
}
derivationInfo.save();
return NanoWallet(