mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
nem: trims removed
This commit is contained in:
parent
c1b284cdfa
commit
9477cd15ea
@ -36,9 +36,3 @@ async def require_confirm_final(ctx, fee: int):
|
||||
text.normal("for network fee?")
|
||||
# we use SignTx, not ConfirmOutput, for compatibility with T1
|
||||
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
|
||||
|
@ -133,8 +133,6 @@ async def _require_confirm_transfer(ctx, recipient, value):
|
||||
async def _require_confirm_payload(ctx, payload: bytearray, encrypt=False):
|
||||
payload = bytes(payload).decode()
|
||||
|
||||
if len(payload) > 48:
|
||||
payload = payload[:48] + ".."
|
||||
if encrypt:
|
||||
text = Text("Confirm payload", ui.ICON_SEND, icon_color=ui.GREEN)
|
||||
text.bold("Encrypted:")
|
||||
|
Loading…
Reference in New Issue
Block a user