mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
initial remove wownero (#3180)
This commit is contained in:
@@ -136,7 +136,10 @@ class WowneroWalletService extends WalletService<
|
||||
if (walletInfo == null) {
|
||||
throw Exception('Wallet not found');
|
||||
}
|
||||
|
||||
wallet = WowneroWallet(walletInfo: walletInfo, derivationInfo: await walletInfo.getDerivationInfo(), unspentCoinsInfo: unspentCoinsInfoSource, password: password);
|
||||
throw Exception(wallet.seed);
|
||||
|
||||
final isValid = wallet.walletAddresses.validate();
|
||||
|
||||
if (!isValid) {
|
||||
@@ -146,9 +149,9 @@ class WowneroWalletService extends WalletService<
|
||||
}
|
||||
|
||||
await wallet.init();
|
||||
|
||||
return wallet;
|
||||
} catch (e, s) {
|
||||
rethrow;
|
||||
// TODO: Implement Exception for wallet list service.
|
||||
|
||||
final bool isBadAlloc = e.toString().contains('bad_alloc') ||
|
||||
|
||||
@@ -72,6 +72,7 @@ class WalletLoadingService {
|
||||
|
||||
return wallet;
|
||||
} catch (error, stack) {
|
||||
if (type == WalletType.wownero) rethrow;
|
||||
await ExceptionHandler.resetLastPopupDate();
|
||||
final isLedgerError = await ExceptionHandler.isLedgerError(error);
|
||||
if (isLedgerError || await requireHardwareWalletConnection(type, name)) rethrow;
|
||||
|
||||
@@ -615,6 +615,9 @@ Future<void> defaultSettingsMigration(
|
||||
case 63:
|
||||
await _addXaut0TokenToExistingSolanaWallets();
|
||||
break;
|
||||
case 64:
|
||||
await _backupWowneroSeeds(havenSeedStore);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
+1
-1
@@ -324,7 +324,7 @@ Future<void> initializeAppConfigs({bool loadWallet = true}) async {
|
||||
payjoinSessionSource: payjoinSessionSource,
|
||||
anonpayInvoiceInfo: anonpayInvoiceInfo,
|
||||
havenSeedStore: havenSeedStore,
|
||||
initialMigrationVersion: 63,
|
||||
initialMigrationVersion: 64,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user