mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user