fix: mnemonic import

This commit is contained in:
ardocrat 2024-09-20 23:30:41 +03:00
parent ac0b218376
commit b627ac1ca6

View file

@ -195,6 +195,7 @@ impl Mnemonic {
// Setup phrase size.
let confirm = self.mode == PhraseMode::Generate;
if !confirm {
self.words = Self::empty_words(&size);
self.size = size;
} else if self.size != size {
return;