mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +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 {
|
) 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,
|
||||||
|
@ -2907,6 +2912,11 @@ class BitcoinWallet extends CoinServiceAPI
|
||||||
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!,
|
||||||
|
|
|
@ -1294,6 +1294,11 @@ class DogecoinWallet extends CoinServiceAPI
|
||||||
) 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,
|
||||||
|
@ -2551,6 +2556,11 @@ class DogecoinWallet extends CoinServiceAPI
|
||||||
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!,
|
||||||
|
|
|
@ -2185,6 +2185,12 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
||||||
final mnemonic = await mnemonicString;
|
final mnemonic = await mnemonicString;
|
||||||
final mnemonicPassphrase =
|
final mnemonicPassphrase =
|
||||||
await _secureStore.read(key: '${_walletId}_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(
|
await fillAddresses(
|
||||||
mnemonic!,
|
mnemonic!,
|
||||||
mnemonicPassphrase!,
|
mnemonicPassphrase!,
|
||||||
|
@ -2281,6 +2287,11 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
||||||
Future<List<DartLelantusEntry>> _getLelantusEntry() async {
|
Future<List<DartLelantusEntry>> _getLelantusEntry() 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 _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();
|
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 {
|
Future<String> _getMintHex(int amount, int index) 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 _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(
|
final derivePath = constructDerivePath(
|
||||||
networkWIF: _network.wif,
|
networkWIF: _network.wif,
|
||||||
|
@ -3825,6 +3841,12 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
||||||
int chain, int index) async {
|
int chain, int index) 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);
|
||||||
|
}
|
||||||
|
|
||||||
Map<String, dynamic>? derivations;
|
Map<String, dynamic>? derivations;
|
||||||
if (chain == 0) {
|
if (chain == 0) {
|
||||||
final receiveDerivationsString =
|
final receiveDerivationsString =
|
||||||
|
@ -3964,6 +3986,12 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
||||||
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!,
|
||||||
_mnemonicPassphrase!,
|
_mnemonicPassphrase!,
|
||||||
|
|
|
@ -1477,6 +1477,11 @@ class LitecoinWallet extends CoinServiceAPI
|
||||||
) 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,
|
||||||
|
@ -2872,6 +2877,11 @@ class LitecoinWallet extends CoinServiceAPI
|
||||||
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!,
|
||||||
|
|
|
@ -1459,6 +1459,11 @@ class NamecoinWallet extends CoinServiceAPI
|
||||||
) 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,
|
||||||
|
@ -2868,6 +2873,12 @@ class NamecoinWallet extends CoinServiceAPI
|
||||||
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!,
|
||||||
mnemonicPassphrase: _mnemonicPassphrase!,
|
mnemonicPassphrase: _mnemonicPassphrase!,
|
||||||
|
|
|
@ -1369,6 +1369,11 @@ class ParticlWallet 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,
|
||||||
|
@ -2961,6 +2966,11 @@ class ParticlWallet 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