Use WalletViewModelBase for wallet access
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Actions/AdvancedWalletActionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Actions/AdvancedWalletActionViewModel.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
NavigationTarget = NavigationTarget.HomeScreen)]
public partial class AdvancedWalletActionViewModel : WalletActionViewModel
{
- public AdvancedWalletActionViewModel(Wallet wallet) : base(wallet)
+ public AdvancedWalletActionViewModel(WalletViewModelBase wallet) : base(wallet)
{
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Actions/CoinJoinWalletActionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Actions/CoinJoinWalletActionViewModel.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
NavigationTarget = NavigationTarget.HomeScreen)]
public partial class CoinJoinWalletActionViewModel : WalletActionViewModel
{
- public CoinJoinWalletActionViewModel(Wallet wallet) : base(wallet)
+ public CoinJoinWalletActionViewModel(WalletViewModelBase wallet) : base(wallet)
{
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Actions/ReceiveWalletActionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Actions/ReceiveWalletActionViewModel.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
NavigationTarget = NavigationTarget.HomeScreen)]
public partial class ReceiveWalletActionViewModel : WalletActionViewModel
{
- public ReceiveWalletActionViewModel(Wallet wallet) : base(wallet)
+ public ReceiveWalletActionViewModel(WalletViewModelBase wallet) : base(wallet)
{
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Actions/SendWalletActionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Actions/SendWalletActionViewModel.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
NavigationTarget = NavigationTarget.HomeScreen)]
public partial class SendWalletActionViewModel : WalletActionViewModel
{
- public SendWalletActionViewModel(Wallet wallet) : base(wallet)
+ public SendWalletActionViewModel(WalletViewModelBase wallet) : base(wallet)
{
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Actions/WalletActionViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Actions/WalletActionViewModel.cs
@@ -6,11 +6,11 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Actions
{
public abstract partial class WalletActionViewModel : NavBarItemViewModel
{
- protected WalletActionViewModel(Wallet wallet)
+ protected WalletActionViewModel(WalletViewModelBase wallet)
{
Wallet = Guard.NotNull(nameof(wallet), wallet);
}
- public Wallet Wallet { get; }
+ public WalletViewModelBase Wallet { get; }
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -51,17 +51,17 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
if (Wallet.KeyManager.IsHardwareWallet || !Wallet.KeyManager.IsWatchOnly)
{
- _actions.Add(new SendWalletActionViewModel(Wallet));
+ _actions.Add(new SendWalletActionViewModel(this));
}
- _actions.Add(new ReceiveWalletActionViewModel(Wallet));
+ _actions.Add(new ReceiveWalletActionViewModel(this));
if (!Wallet.KeyManager.IsWatchOnly)
{
- _actions.Add(new CoinJoinWalletActionViewModel(Wallet));
+ _actions.Add(new CoinJoinWalletActionViewModel(this));
}
- _actions.Add(new AdvancedWalletActionViewModel(Wallet));
+ _actions.Add(new AdvancedWalletActionViewModel(this));
}
private CompositeDisposable Disposables { get; set; }

Use WalletViewModelBase for wallet access