mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
core: use uppercase for cashaddr QR codes
This commit is contained in:
parent
1a5ca74e2d
commit
007f3aa6de
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user