Reverting uppercasing of Bech32 addresses in QR code

This commit is contained in:
rockstardev
2020-12-03 17:30:14 -06:00
parent 450d3cb7d2
commit 36582a2741
2 changed files with 15 additions and 9 deletions

View File

@@ -2094,7 +2094,11 @@ namespace BTCPayServer.Tests
Assert.Contains("&lightning=", paymentMethodSecond.InvoiceBitcoinUrlQR);
Assert.StartsWith("BITCOIN:", paymentMethodSecond.InvoiceBitcoinUrlQR);
var split = paymentMethodSecond.InvoiceBitcoinUrlQR.Split('?')[0];
Assert.True($"BITCOIN:{paymentMethodSecond.BtcAddress.ToUpperInvariant()}" == split);
// Standard for uppercase Bech32 addresses in QR codes is still not implemented in all wallets
// When it is widely propagated consider uncommenting these lines
//Assert.True($"BITCOIN:{paymentMethodSecond.BtcAddress.ToUpperInvariant()}" == split);
Assert.True($"BITCOIN:{paymentMethodSecond.BtcAddress}" == split);
}
}