Fixes for validation of bitcoin seed mnemonic text.

This commit is contained in:
M
2022-01-19 17:27:53 +02:00
parent bd2e2ce258
commit bc07f9d69b
2 changed files with 25 additions and 16 deletions
@@ -38,6 +38,7 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
static const moneroSeedMnemonicLength = 25;
static const electrumSeedMnemonicLength = 24;
static const electrumShortSeedMnemonicLength = 12;
final List<WalletRestoreMode> availableModes;
final bool hasSeedLanguageSelector;
@@ -49,12 +50,7 @@ abstract class WalletRestoreViewModelBase extends WalletCreationVM with Store {
@observable
bool isButtonEnabled;
int get seedMnemonicLength =>
type == WalletType.monero
? moneroSeedMnemonicLength
: electrumSeedMnemonicLength;
@override
WalletCredentials getCredentials(dynamic options) {
final password = generateWalletPassword(type);