Replace the validation with the new parser
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -974,18 +974,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
return "";
}
- if (!string.IsNullOrWhiteSpace(Address))
+ if (AddressStringParser.TryParseBitcoinAddress(Address, Global.Network, out _))
{
- var trimmed = Address.Trim();
- try
- {
- BitcoinAddress.Create(trimmed, Global.Network);
return "";
}
- catch
- {
- }
- }
return $"Invalid {nameof(Address)}";
}

Replace the validation with the new parser