1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00

nem: trims removed

This commit is contained in:
Tomas Susanka 2018-08-28 10:55:46 +02:00
parent c1b284cdfa
commit 9477cd15ea
2 changed files with 0 additions and 8 deletions

View File

@ -36,9 +36,3 @@ async def require_confirm_final(ctx, fee: int):
text.normal("for network fee?") text.normal("for network fee?")
# we use SignTx, not ConfirmOutput, for compatibility with T1 # we use SignTx, not ConfirmOutput, for compatibility with T1
await require_hold_to_confirm(ctx, text, ButtonRequestType.SignTx) await require_hold_to_confirm(ctx, text, ButtonRequestType.SignTx)
def trim(payload: str, length: int) -> str:
if len(payload) > length:
return payload[:length] + ".."
return payload

View File

@ -133,8 +133,6 @@ async def _require_confirm_transfer(ctx, recipient, value):
async def _require_confirm_payload(ctx, payload: bytearray, encrypt=False): async def _require_confirm_payload(ctx, payload: bytearray, encrypt=False):
payload = bytes(payload).decode() payload = bytes(payload).decode()
if len(payload) > 48:
payload = payload[:48] + ".."
if encrypt: if encrypt:
text = Text("Confirm payload", ui.ICON_SEND, icon_color=ui.GREEN) text = Text("Confirm payload", ui.ICON_SEND, icon_color=ui.GREEN)
text.bold("Encrypted:") text.bold("Encrypted:")