Try to make CodeFactor happy
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
@@ -16,7 +16,6 @@ using WalletWasabi.Models;
namespace WalletWasabi.Gui.Tabs.WalletManager
{
-
internal class GenerateWalletViewModel : CategoryViewModel
{
private string _password;

MODIFY
WalletWasabi/Blockchain/Keys/WalletGenerator.cs
WalletWasabi/Blockchain/Keys/WalletGenerator.cs
@@ -9,10 +9,12 @@ namespace WalletWasabi.Blockchain.Keys
{
public class WalletGenerator
{
- public string WalletsDir { get; private set; }
- public Network Network { get; private set; }
- public bool TermsAccepted { get; set; }
- public uint TipHeight { get; set; }
+ private static readonly string[] ReservedFileNames = new string[]
+ {
+ "CON", "PRN", "AUX", "NUL",
+ "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",
+ "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9",
+ };
public WalletGenerator(string walletsDir, Network network)
{
@@ -20,6 +22,12 @@ namespace WalletWasabi.Blockchain.Keys
Network = network;
}
+ public string WalletsDir { get; private set; }
+ public Network Network { get; private set; }
+ public bool TermsAccepted { get; set; }
+ public uint TipHeight { get; set; }
+
+
public (KeyManager, Mnemonic) GenerateWallet(string walletName, string password)
{
if (!ValidateWalletName(walletName))
@@ -47,13 +55,6 @@ namespace WalletWasabi.Blockchain.Keys
return (km, mnemonic);
}
- private static readonly string[] ReservedFileNames = new string[]
- {
- "CON", "PRN", "AUX", "NUL",
- "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",
- "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9",
- };
-
private bool ValidateWalletName(string walletName)
{
if (string.IsNullOrWhiteSpace(walletName))

Try to make CodeFactor happy