From 8cb6b083778319d067887f151a3016a3dda09ebf Mon Sep 17 00:00:00 2001 From: David Misiak Date: Tue, 22 Aug 2023 21:19:00 +0200 Subject: [PATCH] fix(cardano): warn about unknown token decimals --- core/src/apps/cardano/layout.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/apps/cardano/layout.py b/core/src/apps/cardano/layout.py index aa95efa8eb..bb1c5f335c 100644 --- a/core/src/apps/cardano/layout.py +++ b/core/src/apps/cardano/layout.py @@ -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), ), ),