Nobrainer simplification: Don't use global wallet service to acquire KeyManager (will be useful for multiwallet support)
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -117,14 +117,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
try
{
_addresses?.Clear();
- var walletService = Global.WalletService;
- if (walletService is null)
- {
- return;
- }
-
- IEnumerable<HdPubKey> keys = walletService.KeyManager.GetKeys(x => !x.Label.IsEmpty && !x.IsInternal && x.KeyState == KeyState.Clean).Reverse();
+ IEnumerable<HdPubKey> keys = KeyManager.GetKeys(x => !x.Label.IsEmpty && !x.IsInternal && x.KeyState == KeyState.Clean).Reverse();
foreach (HdPubKey key in keys)
{
_addresses.Add(new AddressViewModel(key, Global, KeyManager));

Nobrainer simplification: Don't use global wallet service to acquire KeyManager (will be useful for multiwallet support)