fix when pasted address was not stored
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -44,7 +44,6 @@ public partial class SendViewModel : RoutableViewModel
[AutoNotify] private bool _conversionReversed;
private bool _parsingUrl;
- private BitcoinAddress? _currentAddress;
public SendViewModel(Wallet wallet)
{
@@ -109,12 +108,10 @@ public partial class SendViewModel : RoutableViewModel
NextCommand = ReactiveCommand.Create(() =>
{
- if (_currentAddress is { })
- {
+ var address = BitcoinAddress.Create(To, wallet.Network);
_transactionInfo.Amount = new Money(AmountBtc, MoneyUnit.BTC);
- Navigate().To(new TransactionPreviewViewModel(wallet, _transactionInfo, _currentAddress));
- }
+ Navigate().To(new TransactionPreviewViewModel(wallet, _transactionInfo, address));
}, nextCommandCanExecute);
}
@@ -255,7 +252,6 @@ public partial class SendViewModel : RoutableViewModel
if (url.Address is { })
{
- _currentAddress = url.Address;
To = url.Address.ToString();
}

fix when pasted address was not stored