make it so that users can restore both electrum and bip39 seeds

This commit is contained in:
Matthew Fosse 2024-06-21 15:44:43 -07:00
parent 8169a02317
commit 797aaa58eb

View file

@ -114,7 +114,7 @@ class LightningWalletService extends WalletService<
@override @override
Future<LightningWallet> restoreFromSeed(BitcoinRestoreWalletFromSeedCredentials credentials, Future<LightningWallet> restoreFromSeed(BitcoinRestoreWalletFromSeedCredentials credentials,
{bool? isTestnet}) async { {bool? isTestnet}) async {
if (!bip39.validateMnemonic(credentials.mnemonic)) { if (!bip39.validateMnemonic(credentials.mnemonic) && !validateMnemonic(credentials.mnemonic)) {
throw BitcoinMnemonicIsIncorrectException(); throw BitcoinMnemonicIsIncorrectException();
} }