Removed redundant tostring call
MODIFY
WalletWasabi.Backend/UnversionedWebBuilder.cs
WalletWasabi.Backend/UnversionedWebBuilder.cs
@@ -22,7 +22,7 @@ namespace WalletWasabi.Backend
public static void CreateDownloadTextWithVersionHtml()
{
var filePath = CreateFilePath("download-text-with-version.html");
- var content = HtmlStartLine + $"<h1 class=\"text-center\">Download Wasabi Wallet {Helpers.Constants.ClientVersion.ToString()}</h1>";
+ var content = HtmlStartLine + $"<h1 class=\"text-center\">Download Wasabi Wallet {Helpers.Constants.ClientVersion}</h1>";
File.WriteAllText(filePath, content);
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/WalletInfoViewModel.cs
@@ -94,7 +94,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
public string ExtendedAccountPublicKey => KeyManager.ExtPubKey.ToString(Global.Network);
public string ExtendedAccountZpub => KeyManager.ExtPubKey.ToZpub(Global.Network);
- public string AccountKeyPath => $"m/{KeyManager.AccountKeyPath.ToString()}";
+ public string AccountKeyPath => $"m/{KeyManager.AccountKeyPath}";
public string MasterKeyFingerprint => KeyManager.MasterFingerprint.ToString();
public ReactiveCommand<Unit, Unit> ToggleSensitiveKeysCommand { get; }

MODIFY
WalletWasabi.Gui/Converters/PrivacyLevelValueConverter.cs
WalletWasabi.Gui/Converters/PrivacyLevelValueConverter.cs
@@ -18,7 +18,7 @@ namespace WalletWasabi.Gui.Converters
{
if (!Cache.TryGetValue(icon, out var image))
{
- if (Application.Current.Styles.TryGetResource(icon.ToString(), out object resource))
+ if (Application.Current.Styles.TryGetResource(icon, out object resource))
{
image = resource as DrawingGroup;
Cache.Add(icon, image);

MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -469,7 +469,7 @@ namespace WalletWasabi.Gui
$"Wallet Filepath: {walletFullPath}\n" +
$"Trying to recover it from backup.\n" +
$"Backup path: {walletBackupFullPath}\n" +
- $"Exception: {ex.ToString()}");
+ $"Exception: {ex}");
if (File.Exists(walletFullPath))
{
string corruptedWalletBackupPath = Path.Combine(WalletBackupsDir, $"{Path.GetFileName(walletFullPath)}_CorruptedBackup");

MODIFY
WalletWasabi.Gui/Tabs/AboutViewModel.cs
WalletWasabi.Gui/Tabs/AboutViewModel.cs
@@ -34,7 +34,7 @@ namespace WalletWasabi.Gui.Tabs
public Version Version { get; }
- public string VersionText => $"v{Version.ToString()}";
+ public string VersionText => $"v{Version}";
public string ClearnetLink => "https://wasabiwallet.io/";

MODIFY
WalletWasabi.Packager/Program.cs
WalletWasabi.Packager/Program.cs
@@ -116,7 +116,7 @@ namespace WalletWasabi.Packager
var json = (JObject)JsonConvert.DeserializeObject(responseString);
foreach (JProperty node in json["nodes"])
{
- if (!node.Name.ToString().Contains(".onion"))
+ if (!node.Name.Contains(".onion"))
{
continue;
}

MODIFY
WalletWasabi.Tests/ExternalApiTests.cs
WalletWasabi.Tests/ExternalApiTests.cs
@@ -73,8 +73,8 @@ namespace WalletWasabi.Tests
Assert.InRange(response.MediumFee.FeePerK, response.LowFee.FeePerK, response.HighFee.FeePerK);
Assert.InRange(response.HighFee.FeePerK, response.MediumFee.FeePerK, Money.Coins(0.1m));
Assert.True(response.Height >= 491999);
- Assert.Equal(new Uri(client.BaseAddress.ToString() + "/blocks/" + response.Hash), response.LatestUrl);
- Assert.Equal(new Uri(client.BaseAddress.ToString() + "/blocks/" + response.PreviousHash), response.PreviousUrl);
+ Assert.Equal(new Uri(client.BaseAddress + "/blocks/" + response.Hash), response.LatestUrl);
+ Assert.Equal(new Uri(client.BaseAddress + "/blocks/" + response.PreviousHash), response.PreviousUrl);
if (network == Network.Main)
{
Assert.Equal("BTC.main", response.Name);

MODIFY
WalletWasabi/Exceptions/TypeArgumentException.cs
WalletWasabi/Exceptions/TypeArgumentException.cs
@@ -6,7 +6,7 @@ namespace System
{
public class TypeArgumentException : ArgumentException
{
- public TypeArgumentException(object value, Type expected, string paramName) : base($"Invalid type: {value.GetType().ToString()}. Expected: {expected.ToString()}.", paramName)
+ public TypeArgumentException(object value, Type expected, string paramName) : base($"Invalid type: {value.GetType()}. Expected: {expected}.", paramName)
{
}
}

MODIFY
WalletWasabi/KeyManagement/KeyManager.cs
WalletWasabi/KeyManagement/KeyManager.cs
@@ -805,7 +805,7 @@ namespace WalletWasabi.KeyManagement
if (lastNetwork != null)
{
- Logger.LogWarning<KeyManager>($"Wallet is opened on {expectednetwork.ToString()}. Last time it was opened on {lastNetwork.ToString()}.");
+ Logger.LogWarning<KeyManager>($"Wallet is opened on {expectednetwork}. Last time it was opened on {lastNetwork}.");
}
Logger.LogInfo<KeyManager>("Blockchain cache is cleared.");
}

MODIFY
WalletWasabi/Stores/IndexStore.cs
WalletWasabi/Stores/IndexStore.cs
@@ -189,7 +189,7 @@ namespace WalletWasabi.Stores
}
catch (Exception ex)
{
- Logger.LogWarning<IndexStore>($"Backwards compatibility couldn't be ensured. Exception: {ex.ToString()}");
+ Logger.LogWarning<IndexStore>($"Backwards compatibility couldn't be ensured. Exception: {ex}");
}
}

Removed redundant tostring call