use walletproperty from baseclass.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModel.cs
@@ -21,8 +21,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public WalletViewModel(Wallet wallet) : base(wallet)
{
- Wallet = Guard.NotNull(nameof(wallet), wallet);
-
Disposables = Disposables is null ? new CompositeDisposable() : throw new NotSupportedException($"Cannot open {GetType().Name} before closing it.");
Actions = new ObservableCollection<WasabiDocumentTabViewModel>();
Global = Locator.Current.GetService<Global>();
@@ -61,7 +59,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public string WalletName => Wallet.WalletName;
public KeyManager KeyManager => Wallet.KeyManager;
- public Wallet Wallet { get; }
public ReactiveCommand<Unit, Unit> LurkingWifeModeCommand { get; }
public ObservableCollection<WasabiDocumentTabViewModel> Actions

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModelBase.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletViewModelBase.cs
@@ -13,6 +13,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public WalletViewModelBase(Wallet wallet)
{
+ Wallet = Guard.NotNull(nameof(wallet), wallet);
Wallet = wallet;
}

use walletproperty from baseclass.