Add variable in if
MODIFY
WalletWasabi/Userfacing/AddressStringParser.cs
WalletWasabi/Userfacing/AddressStringParser.cs
@@ -59,7 +59,7 @@ public static class AddressStringParser
}
var bitcoinUrl = new BitcoinUrlBuilder(text, expectedNetwork);
- if (bitcoinUrl?.Address is { } && bitcoinUrl.Address.Network == expectedNetwork)
+ if (bitcoinUrl?.Address is { } address && address.Network == expectedNetwork)
{
url = bitcoinUrl;
return true;

Add variable in if