1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-04 13:52:35 +00:00

WIP - small fixes

This commit is contained in:
grdddj 2023-01-11 15:37:40 +01:00
parent d5ce12ef89
commit c9f3e5759d
2 changed files with 17 additions and 21 deletions

View File

@ -855,7 +855,7 @@ async def confirm_payment_request(
ctx, ctx,
"confirm_payment_request", "confirm_payment_request",
"CONFIRM SENDING", "CONFIRM SENDING",
f"{amount} to\n{recipient_name}\n{memos_str}", description=f"{amount} to\n{recipient_name}\n{memos_str}",
br_code=ButtonRequestType.ConfirmOutput, br_code=ButtonRequestType.ConfirmOutput,
) )

View File

@ -13,11 +13,10 @@ async def confirm_total_ethereum(
ctx: wire.GenericContext, total_amount: str, gas_price: str, fee_max: str ctx: wire.GenericContext, total_amount: str, gas_price: str, fee_max: str
) -> Awaitable[None]: ) -> Awaitable[None]:
return await _placeholder_confirm( return await _placeholder_confirm(
ctx=ctx, ctx,
br_type="confirm_total", "confirm_total",
title="Confirm transaction", "Confirm transaction",
data=f"{total_amount}\nGas price:\n{gas_price}\nMaximum fee:\n{fee_max}", f"{total_amount}\nGas price:\n{gas_price}\nMaximum fee:\n{fee_max}",
description="",
br_code=ButtonRequestType.SignTx, br_code=ButtonRequestType.SignTx,
) )
@ -28,11 +27,10 @@ async def confirm_total_ripple(
amount: str, amount: str,
) -> Awaitable[None]: ) -> Awaitable[None]:
return await _placeholder_confirm( return await _placeholder_confirm(
ctx=ctx, ctx,
br_type="confirm_output", "confirm_output",
title="Confirm sending", "Confirm sending",
data=f"{amount} XRP\nto\n{address}", f"{amount} XRP\nto\n{address}",
description="",
br_code=ButtonRequestType.SignTx, br_code=ButtonRequestType.SignTx,
) )
@ -44,11 +42,10 @@ async def confirm_transfer_binance(
for title, amount, address in inputs_outputs: for title, amount, address in inputs_outputs:
text += f"{title}\n{amount}\nto\n{address}\n\n" text += f"{title}\n{amount}\nto\n{address}\n\n"
return await _placeholder_confirm( return await _placeholder_confirm(
ctx=ctx, ctx,
br_type="confirm_transfer", "confirm_transfer",
title="Confirm Binance", "Confirm Binance",
data=text, text,
description="",
br_code=ButtonRequestType.ConfirmOutput, br_code=ButtonRequestType.ConfirmOutput,
) )
@ -59,10 +56,9 @@ async def confirm_decred_sstx_submission(
amount: str, amount: str,
) -> Awaitable[None]: ) -> Awaitable[None]:
return await _placeholder_confirm( return await _placeholder_confirm(
ctx=ctx, ctx,
br_type="confirm_decred_sstx_submission", "confirm_decred_sstx_submission",
title="Purchase ticket", "Purchase ticket",
data=f"{amount}\nwith voting rights to\n{address}", f"{amount}\nwith voting rights to\n{address}",
description="",
br_code=ButtonRequestType.ConfirmOutput, br_code=ButtonRequestType.ConfirmOutput,
) )