From abb6f284cabddfa70c3168ec054b91191cd34864 Mon Sep 17 00:00:00 2001 From: Jan Pochyla <jpochyla@gmail.com> Date: Tue, 15 Nov 2016 11:53:03 +0100 Subject: [PATCH] wallet: use hold to confirm the tx summary --- src/apps/wallet/layout_sign_tx.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apps/wallet/layout_sign_tx.py b/src/apps/wallet/layout_sign_tx.py index 0dc01e78ae..d5e99965e4 100644 --- a/src/apps/wallet/layout_sign_tx.py +++ b/src/apps/wallet/layout_sign_tx.py @@ -24,12 +24,12 @@ async def confirm_total(session_id, spending, fee, coin): from trezor import ui from trezor.ui.text import Text from trezor.messages.ButtonRequestType import SignTx - from ..common.confirm import confirm + from ..common.confirm import hold_to_confirm content = Text('Confirm transaction', ui.ICON_RESET, 'Sending: %s' % format_amount(spending, coin), 'Fee: %s' % format_amount(fee, coin)) - return await confirm(session_id, content, SignTx) + return await hold_to_confirm(session_id, content, SignTx) @unimport @@ -59,6 +59,5 @@ async def layout_sign_tx(message, session_id): elif isinstance(req, signtx.UiConfirmTotal): res = await confirm_total(session_id, req.spending, req.fee, req.coin) else: - print(req) raise ValueError('Invalid signing instruction') return req