Fix GenerateWalletIssues
MODIFY
WalletWasabi.Gui/Rpc/WasabiJsonRpcService.cs
WalletWasabi.Gui/Rpc/WasabiJsonRpcService.cs
@@ -43,7 +43,7 @@ namespace WalletWasabi.Gui.Rpc
[JsonRpcMethod("createwallet")]
public object CreateWallet(string walletName, string password)
{
- var walletGenerator = new WalletGenerator(Global.WalletsDir, Global.Network);
+ var walletGenerator = new WalletGenerator(Global.WalletManager.WalletDirectories.WalletsDir, Global.Network);
walletGenerator.TipHeight = Global.BitcoinStore.SmartHeaderChain.TipHeight;
var (keyManager, mnemonic) = walletGenerator.GenerateWallet(walletName, password);
keyManager.ToFile();

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWallets/GenerateWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWallets/GenerateWalletViewModel.cs
@@ -43,7 +43,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.GenerateWallets
{
try
{
- var walletGenerator = new WalletGenerator(Global.WalletsDir, Global.Network);
+ var walletGenerator = new WalletGenerator(Global.WalletManager.WalletDirectories.WalletsDir, Global.Network);
walletGenerator.TipHeight = Global.BitcoinStore.SmartHeaderChain.TipHeight;
var (km, mnemonic) = walletGenerator.GenerateWallet(WalletName, Password);
Owner.CurrentView = new GenerateWalletSuccessViewModel(Owner, km, mnemonic);

Fix GenerateWalletIssues