1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

core: use uppercase for cashaddr QR codes

This commit is contained in:
Pavol Rusnak 2019-08-01 17:48:07 +02:00
parent 1a5ca74e2d
commit 007f3aa6de
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -26,6 +26,8 @@ async def get_address(ctx, msg, keychain):
address_short = addresses.address_short(coin, address)
if msg.script_type == InputScriptType.SPENDWITNESS:
address_qr = address.upper() # bech32 address
elif coin.cashaddr_prefix is not None:
address_qr = address.upper() # cashaddr address
else:
address_qr = address # base58 address