mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
throw error on null bch mnemonic passphrase
This commit is contained in:
parent
5d033dd446
commit
8ecf6e988a
1 changed files with 10 additions and 0 deletions
|
@ -1466,6 +1466,11 @@ class BitcoinCashWallet 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,
|
||||
|
@ -2976,6 +2981,11 @@ class BitcoinCashWallet 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!,
|
||||
|
|
Loading…
Reference in a new issue