Order element & rename method
MODIFY
WalletWasabi/Extensions/NBitcoinExtensions.cs
WalletWasabi/Extensions/NBitcoinExtensions.cs
@@ -17,6 +17,12 @@ namespace NBitcoin
{
public static class NBitcoinExtensions
{
+ private static NumberFormatInfo CurrencyNumberFormat = new NumberFormatInfo()
+ {
+ NumberGroupSeparator = " ",
+ NumberDecimalDigits = 0
+ };
+
public static async Task<Block> DownloadBlockAsync(this Node node, uint256 hash, CancellationToken cancellationToken)
{
if (node.State == NodeState.Connected)
@@ -253,7 +259,7 @@ namespace NBitcoin
return toStringBuilder.ToString();
}
- public static BitcoinWitPubKeyAddress TransformToNetworkNetwork(this BitcoinWitPubKeyAddress me, Network desiredNetwork)
+ public static BitcoinWitPubKeyAddress TransformToNetwork(this BitcoinWitPubKeyAddress me, Network desiredNetwork)
{
Network originalNetwork = me.Network;
@@ -364,12 +370,6 @@ namespace NBitcoin
return null;
}
- private static NumberFormatInfo CurrencyNumberFormat = new NumberFormatInfo()
- {
- NumberGroupSeparator = " ",
- NumberDecimalDigits = 0
- };
-
private static string ToCurrency(this Money btc, string currency, decimal exchangeRate, bool privacyMode = false)
{
var dollars = exchangeRate * btc.ToDecimal(MoneyUnit.BTC);

MODIFY
WalletWasabi/Hwi/HwiClient.cs
WalletWasabi/Hwi/HwiClient.cs
@@ -163,7 +163,7 @@ namespace WalletWasabi.Hwi
var address = HwiParser.ParseAddress(response, Network) as BitcoinWitPubKeyAddress;
- address = address.TransformToNetworkNetwork(Network);
+ address = address.TransformToNetwork(Network);
return address;
}

Order element & rename method