1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-26 00:08:10 +00:00

fix(cardano): warn about unknown token decimals

This commit is contained in:
David Misiak 2023-08-22 21:19:00 +02:00 committed by matejcik
parent 72c52f2ffa
commit 8cb6b08377

View File

@ -244,7 +244,7 @@ async def confirm_sending_token(policy_id: bytes, token: messages.CardanoToken)
asset_name_bytes=token.asset_name_bytes,
),
),
("Amount sent:", format_amount(token.amount, 0)),
("Amount sent (decimals unknown):", format_amount(token.amount, 0)),
),
br_code=BRT_Other,
)
@ -817,7 +817,9 @@ async def confirm_token_minting(policy_id: bytes, token: messages.CardanoToken)
),
),
(
"Amount minted:" if token.mint_amount >= 0 else "Amount burned:",
"Amount minted (decimals unknown):"
if token.mint_amount >= 0
else "Amount burned (decimals unknown):",
format_amount(token.mint_amount, 0),
),
),