gui: Uppercase bech32 addresses in qr codes
This commit is contained in:
parent
d5dbb45bdf
commit
3407b446cc
1 changed files with 3 additions and 1 deletions
|
@ -175,7 +175,9 @@ bool parseBitcoinURI(QString uri, SendCoinsRecipient *out)
|
||||||
|
|
||||||
QString formatBitcoinURI(const SendCoinsRecipient &info)
|
QString formatBitcoinURI(const SendCoinsRecipient &info)
|
||||||
{
|
{
|
||||||
QString ret = QString("bitcoin:%1").arg(info.address);
|
bool bech_32 = info.address.startsWith(QString::fromStdString(Params().Bech32HRP() + "1"));
|
||||||
|
|
||||||
|
QString ret = QString("bitcoin:%1").arg(bech_32 ? info.address.toUpper() : info.address);
|
||||||
int paramCount = 0;
|
int paramCount = 0;
|
||||||
|
|
||||||
if (info.amount)
|
if (info.amount)
|
||||||
|
|
Loading…
Reference in a new issue