Fixes as per Dan's comments
MODIFY
WalletWasabi.Fluent/Extensions/TransactionSummaryExtension.cs
WalletWasabi.Fluent/Extensions/TransactionSummaryExtension.cs
+using NBitcoin;
using WalletWasabi.Blockchain.Transactions;
+using WalletWasabi.Fluent.Models;
using WalletWasabi.Models;
namespace WalletWasabi.Fluent.Extensions;
@@ -10,4 +12,12 @@ public static class TransactionSummaryExtension
var confirmations = model.Height.Type == HeightType.Chain ? (int)Services.BitcoinStore.SmartHeaderChain.TipHeight - model.Height.Value + 1 : 0;
return confirmations > 0;
}
+
+ public static MoneyUnit ToMoneyUnit(this FeeDisplayFormat feeDisplayFormat) =>
+ feeDisplayFormat switch
+ {
+ FeeDisplayFormat.BTC => MoneyUnit.BTC,
+ FeeDisplayFormat.Satoshis => MoneyUnit.Satoshi,
+ _ => MoneyUnit.BTC
+ };
}

MODIFY
WalletWasabi.Fluent/Models/FeeDisplayFormat.cs
WalletWasabi.Fluent/Models/FeeDisplayFormat.cs
@@ -10,14 +10,3 @@ public enum FeeDisplayFormat
[FriendlyName("sats")]
Satoshis,
}
\ No newline at end of file
-
-public static class FeeDisplayFormatExtensions
-{
- public static MoneyUnit ToMoneyUnit(this FeeDisplayFormat feeDisplayFormat) =>
- feeDisplayFormat switch
- {
- FeeDisplayFormat.BTC => MoneyUnit.BTC,
- FeeDisplayFormat.Satoshis => MoneyUnit.Satoshi,
- _ => MoneyUnit.BTC
- };
-}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
@@ -4,6 +4,7 @@ using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Extensions;
+using WalletWasabi.Fluent.Extensions;
using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.Models;
using WalletWasabi.Fluent.ViewModels.Navigation;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionSummaryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionSummaryViewModel.cs
@@ -3,6 +3,7 @@ using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.TransactionBuilding;
using WalletWasabi.Extensions;
+using WalletWasabi.Fluent.Extensions;
using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.Models;
using WalletWasabi.Wallets;
@@ -78,6 +79,4 @@ public partial class TransactionSummaryViewModel : ViewModelBase
IsCustomFeeUsed = _info.IsCustomFeeUsed;
}
-
-
}

Fixes as per Dan's comments