From 889315ba00a66ce18da8e46243c0ca4284e21f71 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Wed, 22 Aug 2018 11:52:46 +0200 Subject: [PATCH] wallet: total amount fix (#318) --- src/apps/wallet/sign_tx/signing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/wallet/sign_tx/signing.py b/src/apps/wallet/sign_tx/signing.py index 34651fa2c..1923bf0bd 100644 --- a/src/apps/wallet/sign_tx/signing.py +++ b/src/apps/wallet/sign_tx/signing.py @@ -155,7 +155,7 @@ async def check_tx_fee(tx: SignTx, root: bip32.HDNode): if not await confirm_feeoverthreshold(fee, coin): raise SigningError(FailureType.ActionCancelled, "Signing cancelled") - if not await confirm_total(total_out - change_out, fee, coin): + if not await confirm_total(total_in - change_out, fee, coin): raise SigningError(FailureType.ActionCancelled, "Total cancelled") return h_first, hash143, segwit, total_in, wallet_path