diff --git a/lib/services/coins/bitcoin/bitcoin_wallet.dart b/lib/services/coins/bitcoin/bitcoin_wallet.dart index 1c93321eb..2411e63df 100644 --- a/lib/services/coins/bitcoin/bitcoin_wallet.dart +++ b/lib/services/coins/bitcoin/bitcoin_wallet.dart @@ -1502,6 +1502,11 @@ class BitcoinWallet extends CoinServiceAPI ) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final derivePath = constructDerivePath( derivePathType: derivePathType, @@ -2907,6 +2912,11 @@ class BitcoinWallet extends CoinServiceAPI try { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in fullRescan: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } await _recoverWalletFromBIP32SeedPhrase( mnemonic: _mnemonic!, diff --git a/lib/services/coins/dogecoin/dogecoin_wallet.dart b/lib/services/coins/dogecoin/dogecoin_wallet.dart index c5e568381..d7cc6e2f3 100644 --- a/lib/services/coins/dogecoin/dogecoin_wallet.dart +++ b/lib/services/coins/dogecoin/dogecoin_wallet.dart @@ -1294,6 +1294,11 @@ class DogecoinWallet extends CoinServiceAPI ) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final derivePath = constructDerivePath( derivePathType: derivePathType, @@ -2551,6 +2556,11 @@ class DogecoinWallet extends CoinServiceAPI try { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in fullRescan: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } await _recoverWalletFromBIP32SeedPhrase( mnemonic: _mnemonic!, diff --git a/lib/services/coins/firo/firo_wallet.dart b/lib/services/coins/firo/firo_wallet.dart index 7b7f5cb98..ab535aa76 100644 --- a/lib/services/coins/firo/firo_wallet.dart +++ b/lib/services/coins/firo/firo_wallet.dart @@ -2185,6 +2185,12 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { final mnemonic = await mnemonicString; final mnemonicPassphrase = await _secureStore.read(key: '${_walletId}_mnemonicPassphrase'); + if (mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } + await fillAddresses( mnemonic!, mnemonicPassphrase!, @@ -2281,6 +2287,11 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { Future> _getLelantusEntry() async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _getLelantusEntry: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final List lelantusCoins = await _getUnspentCoins(); @@ -2943,6 +2954,11 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { Future _getMintHex(int amount, int index) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _getMintHex: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final derivePath = constructDerivePath( networkWIF: _network.wif, @@ -3825,6 +3841,12 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { int chain, int index) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } + Map? derivations; if (chain == 0) { final receiveDerivationsString = @@ -3964,6 +3986,12 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive { try { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in fullRescan: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } + await _recoverWalletFromBIP32SeedPhrase( _mnemonic!, _mnemonicPassphrase!, diff --git a/lib/services/coins/litecoin/litecoin_wallet.dart b/lib/services/coins/litecoin/litecoin_wallet.dart index c8b69c8c8..046e23546 100644 --- a/lib/services/coins/litecoin/litecoin_wallet.dart +++ b/lib/services/coins/litecoin/litecoin_wallet.dart @@ -1477,6 +1477,11 @@ class LitecoinWallet extends CoinServiceAPI ) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final derivePath = constructDerivePath( derivePathType: derivePathType, @@ -2872,6 +2877,11 @@ class LitecoinWallet extends CoinServiceAPI try { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in fullRescan: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } await _recoverWalletFromBIP32SeedPhrase( mnemonic: _mnemonic!, diff --git a/lib/services/coins/namecoin/namecoin_wallet.dart b/lib/services/coins/namecoin/namecoin_wallet.dart index 3be5ad6d7..ffbcb8acc 100644 --- a/lib/services/coins/namecoin/namecoin_wallet.dart +++ b/lib/services/coins/namecoin/namecoin_wallet.dart @@ -1459,6 +1459,11 @@ class NamecoinWallet extends CoinServiceAPI ) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final derivePath = constructDerivePath( derivePathType: derivePathType, @@ -2868,6 +2873,12 @@ class NamecoinWallet extends CoinServiceAPI try { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in fullRescan: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } + await _recoverWalletFromBIP32SeedPhrase( mnemonic: _mnemonic!, mnemonicPassphrase: _mnemonicPassphrase!, diff --git a/lib/services/coins/particl/particl_wallet.dart b/lib/services/coins/particl/particl_wallet.dart index 577bf2def..c958b85bb 100644 --- a/lib/services/coins/particl/particl_wallet.dart +++ b/lib/services/coins/particl/particl_wallet.dart @@ -1369,6 +1369,11 @@ class ParticlWallet extends CoinServiceAPI with WalletCache, WalletDB { ) async { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in _generateAddressForChain: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } final derivePath = constructDerivePath( derivePathType: derivePathType, @@ -2961,6 +2966,11 @@ class ParticlWallet extends CoinServiceAPI with WalletCache, WalletDB { try { final _mnemonic = await mnemonicString; final _mnemonicPassphrase = await mnemonicPassphrase; + if (_mnemonicPassphrase == null) { + Logging.instance.log( + "Exception in fullRescan: mnemonic passphrase null, possible migration issue; if using internal builds, delete wallet and restore from seed, if using a release build, please file bug report", + level: LogLevel.Error); + } await _recoverWalletFromBIP32SeedPhrase( mnemonic: _mnemonic!,