mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
make it so that users can restore both electrum and bip39 seeds
This commit is contained in:
parent
8169a02317
commit
797aaa58eb
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class LightningWalletService extends WalletService<
|
|||
@override
|
||||
Future<LightningWallet> restoreFromSeed(BitcoinRestoreWalletFromSeedCredentials credentials,
|
||||
{bool? isTestnet}) async {
|
||||
if (!bip39.validateMnemonic(credentials.mnemonic)) {
|
||||
if (!bip39.validateMnemonic(credentials.mnemonic) && !validateMnemonic(credentials.mnemonic)) {
|
||||
throw BitcoinMnemonicIsIncorrectException();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue