diff --git a/cw_wownero/lib/wownero_wallet_service.dart b/cw_wownero/lib/wownero_wallet_service.dart index b8063a315..47b00616d 100644 --- a/cw_wownero/lib/wownero_wallet_service.dart +++ b/cw_wownero/lib/wownero_wallet_service.dart @@ -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') || diff --git a/lib/core/wallet_loading_service.dart b/lib/core/wallet_loading_service.dart index f6fb76737..029af339a 100644 --- a/lib/core/wallet_loading_service.dart +++ b/lib/core/wallet_loading_service.dart @@ -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; diff --git a/lib/entities/default_settings_migration.dart b/lib/entities/default_settings_migration.dart index 3c5fed789..d180a4a3c 100644 --- a/lib/entities/default_settings_migration.dart +++ b/lib/entities/default_settings_migration.dart @@ -615,6 +615,9 @@ Future defaultSettingsMigration( case 63: await _addXaut0TokenToExistingSolanaWallets(); break; + case 64: + await _backupWowneroSeeds(havenSeedStore); + break; default: break; } diff --git a/lib/main.dart b/lib/main.dart index 3d4493a36..3d3615e4d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -324,7 +324,7 @@ Future initializeAppConfigs({bool loadWallet = true}) async { payjoinSessionSource: payjoinSessionSource, anonpayInvoiceInfo: anonpayInvoiceInfo, havenSeedStore: havenSeedStore, - initialMigrationVersion: 63, + initialMigrationVersion: 64, ); }