From 3318ed22f5f3b8fb98c7099c6214f0c8299429f5 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 20 Jun 2017 12:03:11 +0200 Subject: [PATCH] trezor.ui.confirm: content is required --- src/apps/common/confirm.py | 4 ++-- src/trezor/ui/confirm.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/common/confirm.py b/src/apps/common/confirm.py index 42cf0488..6ab5032b 100644 --- a/src/apps/common/confirm.py +++ b/src/apps/common/confirm.py @@ -7,7 +7,7 @@ signal = loop.Signal() @unimport -async def confirm(session_id, content=None, code=None, *args, **kwargs): +async def confirm(session_id, content, code=None, *args, **kwargs): from trezor.ui.confirm import ConfirmDialog, CONFIRMED from trezor.messages.ButtonRequest import ButtonRequest from trezor.messages.ButtonRequestType import Other @@ -24,7 +24,7 @@ async def confirm(session_id, content=None, code=None, *args, **kwargs): @unimport -async def hold_to_confirm(session_id, content=None, code=None, *args, **kwargs): +async def hold_to_confirm(session_id, content, code=None, *args, **kwargs): from trezor.ui.confirm import HoldToConfirmDialog, CONFIRMED from trezor.messages.ButtonRequest import ButtonRequest from trezor.messages.ButtonRequestType import Other diff --git a/src/trezor/ui/confirm.py b/src/trezor/ui/confirm.py index b54eb1a3..0827dcfc 100644 --- a/src/trezor/ui/confirm.py +++ b/src/trezor/ui/confirm.py @@ -12,7 +12,7 @@ CANCELLED = const(2) class ConfirmDialog(Widget): - def __init__(self, content=None, confirm='Confirm', cancel='Cancel'): + def __init__(self, content, confirm='Confirm', cancel='Cancel'): self.content = content if cancel is not None: self.confirm = Button((121, 240 - 48, 119, 48), confirm,