pass only the wallet name
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -307,7 +307,7 @@ public partial class SendViewModel : RoutableViewModel
if (_coinJoinManager is { } coinJoinManager)
{
- coinJoinManager.WalletEnteredSendWorkflow(_wallet);
+ coinJoinManager.WalletEnteredSendWorkflow(_wallet.WalletName);
}
}
@@ -329,7 +329,7 @@ public partial class SendViewModel : RoutableViewModel
if (!isInHistory && _coinJoinManager is { } coinJoinManager)
{
- coinJoinManager.WalletLeftSendWorkflow(_wallet);
+ coinJoinManager.WalletLeftSendWorkflow(_wallet.WalletName);
}
}
}

MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinManager.cs
WalletWasabi/WabiSabi/Client/CoinJoinManager.cs
@@ -528,9 +528,9 @@ public class CoinJoinManager : BackgroundService
}
}
- public void WalletEnteredSendWorkflow(IWallet wallet) => WalletsInSendWorkflow.TryAdd(wallet.WalletName, 0);
+ public void WalletEnteredSendWorkflow(string walletName) => WalletsInSendWorkflow.TryAdd(walletName, 0);
- public void WalletLeftSendWorkflow(IWallet wallet) => WalletsInSendWorkflow.Remove(wallet.WalletName, out _);
+ public void WalletLeftSendWorkflow(string walletName) => WalletsInSendWorkflow.Remove(walletName, out _);
private void CoinJoinTracker_WalletCoinJoinProgressChanged(object? sender, CoinJoinProgressEventArgs e)
{

pass only the wallet name