mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
apply null mnemonic passphrase error log to other relevant coins
This commit is contained in:
parent
8ecf6e988a
commit
efbfe4def7
6 changed files with 79 additions and 0 deletions
|
@ -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!,
|
||||
|
|
|
@ -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!,
|
||||
|
|
|
@ -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<List<DartLelantusEntry>> _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<LelantusCoin> lelantusCoins = await _getUnspentCoins();
|
||||
|
||||
|
@ -2943,6 +2954,11 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
|||
Future<String> _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<String, dynamic>? 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!,
|
||||
|
|
|
@ -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!,
|
||||
|
|
|
@ -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!,
|
||||
|
|
|
@ -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!,
|
||||
|
|
Loading…
Reference in a new issue