[skip ci] optimize trims
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -59,7 +59,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Dispatcher.UIThread.Post(() =>
{
- var label = Label.Trim().Trim(',').Trim();
+ var label = Label.Trim(',', ' ').Trim();
HdPubKey newKey = Global.WalletService.GetReceiveKey(label, Addresses.Select(x => x.Model).Take(7)); // Never touch the first 7 keys.
AddressViewModel found = Addresses.FirstOrDefault(x => x.Model == newKey);

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -136,7 +136,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
return;
}
}
- var label = Label.Trim().Trim(',').Trim();
+ var label = Label.Trim(',', ' ').Trim();
var operation = new WalletService.Operation(script, amount, label);
var result = await Task.Run(async () => await Global.WalletService.BuildTransactionAsync(Password, new[] { operation }, Fee, allowUnconfirmed: true, allowedInputs: selectedCoins));

[skip ci] optimize trims