Merge #15371: gui: Uppercase bech32 addresses in qr codes
3407b446c
gui: Uppercase bech32 addresses in qr codes (Ben Carman) Pull request description: Closes #12191 ACKs for commit 3407b4: meshcollider: utACK3407b446cc
jonasschnelli: Re utACK3407b446cc
Tree-SHA512: d63ecf8e9805c46c9f554cc929661a37837bc3ba9b7b931331c2a5c2b81468742e1819c9add73966083011709cc15ae1870a454348af8591b3d75d3765dca568
This commit is contained in:
commit
3a0d6da098
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 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;
|
||||
|
||||
if (info.amount)
|
||||
|
|
Loading…
Reference in a new issue