mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 18:00:59 +00:00
stellar: get public key - show on display fix
This commit is contained in:
parent
0666533ca0
commit
306531f29b
@ -26,16 +26,9 @@ async def get_public_key(ctx, msg: StellarGetPublicKey):
|
|||||||
|
|
||||||
async def _show(ctx, pubkey: bytes):
|
async def _show(ctx, pubkey: bytes):
|
||||||
lines = split_address(hexlify(pubkey))
|
lines = split_address(hexlify(pubkey))
|
||||||
content = Text(
|
text = Text("Export Stellar ID", ui.ICON_RECEIVE, icon_color=ui.GREEN)
|
||||||
"Export Stellar ID",
|
text.mono(*lines)
|
||||||
ui.ICON_RECEIVE,
|
|
||||||
ui.NORMAL,
|
|
||||||
"Share public account ID?", # todo only two lines are displayed
|
|
||||||
ui.MONO,
|
|
||||||
*lines,
|
|
||||||
icon_color=ui.GREEN
|
|
||||||
)
|
|
||||||
|
|
||||||
return await confirm(
|
return await confirm(
|
||||||
ctx, content, code=ButtonRequestType.Address, cancel_style=ui.BTN_KEY
|
ctx, text, code=ButtonRequestType.Address, cancel_style=ui.BTN_KEY
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user