mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +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 {
|
) async {
|
||||||
final _mnemonic = await mnemonicString;
|
final _mnemonic = await mnemonicString;
|
||||||
final _mnemonicPassphrase = await mnemonicPassphrase;
|
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(
|
final derivePath = constructDerivePath(
|
||||||
derivePathType: derivePathType,
|
derivePathType: derivePathType,
|
||||||
|
@ -2976,6 +2981,11 @@ class BitcoinCashWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
try {
|
try {
|
||||||
final _mnemonic = await mnemonicString;
|
final _mnemonic = await mnemonicString;
|
||||||
final _mnemonicPassphrase = await mnemonicPassphrase;
|
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(
|
await _recoverWalletFromBIP32SeedPhrase(
|
||||||
mnemonic: _mnemonic!,
|
mnemonic: _mnemonic!,
|
||||||
|
|
Loading…
Reference in a new issue