Correct capitalized mnemonic
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/RecoverWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/RecoverWalletViewModel.cs
@@ -13,6 +13,7 @@ using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Fluent.ViewModels.Dialogs;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Gui.Validation;
+using WalletWasabi.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Models;
using WalletWasabi.Wallets;
@@ -34,7 +35,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
Suggestions = new Mnemonic(Wordlist.English, WordCount.Twelve).WordList.GetWords();
Mnemonics.ToObservableChangeSet().ToCollection()
- .Select(x => x.Count == 12 ? new Mnemonic(GetTagsAsConcatString()) : default)
+ .Select(x => x.Count == 12 ? new Mnemonic(GetTagsAsConcatString().ToLowerInvariant()) : default)
.Subscribe(x => CurrentMnemonics = x);
this.WhenAnyValue(x => x.SelectedTag)
@@ -96,7 +97,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
.walletFilePath;
var result = KeyManager.Recover(
- CurrentMnemonics!,
+ CurrentMnemonics,
password!,
walletFilePath,
AccountKeyPath,

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletViewModel.cs
@@ -61,7 +61,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets
private void RecoverWallet(WalletManagerViewModel owner)
{
WalletName = Guard.Correct(WalletName);
- MnemonicWords = Guard.Correct(MnemonicWords);
+ MnemonicWords = Guard.Correct(MnemonicWords).ToLowerInvariant();
Password = Guard.Correct(Password); // Do not let whitespaces to the beginning and to the end.
string walletFilePath = WalletManager.WalletDirectories.GetWalletFilePaths(WalletName).walletFilePath;

Correct capitalized mnemonic