Make methods synchronous to fix warnings
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
@@ -255,10 +255,10 @@ namespace WalletWasabi.Fluent.Controls
protected override void OnKeyDown(KeyEventArgs e)
{
- DoPasteCheckAsync(e);
+ DoPasteCheck(e);
}
- private async void DoPasteCheckAsync(KeyEventArgs e)
+ private void DoPasteCheck(KeyEventArgs e)
{
var keymap = AvaloniaLocator.Current.GetService<PlatformHotkeyConfiguration>();

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -107,7 +107,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
return allFilled && !hasError;
});
- NextCommand = ReactiveCommand.CreateFromTask(async () =>
+ NextCommand = ReactiveCommand.Create(() =>
{
_transactionInfo.Amount = new Money(AmountBtc, MoneyUnit.BTC);

MODIFY
WalletWasabi/Wallets/Wallet.cs
WalletWasabi/Wallets/Wallet.cs
@@ -141,7 +141,7 @@ namespace WalletWasabi.Wallets
TransactionProcessor = new TransactionProcessor(BitcoinStore.TransactionStore, KeyManager, ServiceConfiguration.DustThreshold, ServiceConfiguration.PrivacyLevelStrong);
Coins = TransactionProcessor.Coins;
- TransactionProcessor.WalletRelevantTransactionProcessed += TransactionProcessor_WalletRelevantTransactionProcessedAsync;
+ TransactionProcessor.WalletRelevantTransactionProcessed += TransactionProcessor_WalletRelevantTransactionProcessed;
BitcoinStore.IndexStore.NewFilter += IndexDownloader_NewFilterAsync;
BitcoinStore.IndexStore.Reorged += IndexDownloader_ReorgedAsync;
BitcoinStore.MempoolService.TransactionReceived += Mempool_TransactionReceived;
@@ -261,7 +261,7 @@ namespace WalletWasabi.Wallets
BitcoinStore.IndexStore.NewFilter -= IndexDownloader_NewFilterAsync;
BitcoinStore.IndexStore.Reorged -= IndexDownloader_ReorgedAsync;
BitcoinStore.MempoolService.TransactionReceived -= Mempool_TransactionReceived;
- TransactionProcessor.WalletRelevantTransactionProcessed -= TransactionProcessor_WalletRelevantTransactionProcessedAsync;
+ TransactionProcessor.WalletRelevantTransactionProcessed -= TransactionProcessor_WalletRelevantTransactionProcessed;
}
}
}
@@ -271,7 +271,7 @@ namespace WalletWasabi.Wallets
}
}
- private async void TransactionProcessor_WalletRelevantTransactionProcessedAsync(object? sender, ProcessedResult e)
+ private void TransactionProcessor_WalletRelevantTransactionProcessed(object? sender, ProcessedResult e)
{
try
{

Make methods synchronous to fix warnings