Add WalletService, Load KeyManager
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -36,11 +36,14 @@ namespace WalletWasabi.Gui
public static MemPoolService MemPoolService { get; private set; }
public static NodesGroup Nodes { get; private set; }
public static IndexDownloader IndexDownloader { get; private set; }
+ public static WalletService WalletService { get; private set; }
public static Config Config { get; private set; }
public static void Initialize(Config config)
{
+ WalletService = null;
+
Config = Guard.NotNull(nameof(config), config);
Network network = Config.Network;

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -9,6 +9,7 @@ using ReactiveUI;
using WalletWasabi.Gui.ViewModels;
using WalletWasabi.KeyManagement;
using WalletWasabi.Logging;
+using WalletWasabi.Services;
namespace WalletWasabi.Gui.Tabs.WalletManager
{
@@ -70,7 +71,9 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
return;
}
- // Implement the logic here
+ var keyManager = KeyManager.FromFile(walletFullPath);
+
+ //Global.WalletService = new WalletService(keyManager)
}
}
}

Add WalletService, Load KeyManager