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

wallet: total amount fix (#318)

This commit is contained in:
Tomas Susanka 2018-08-22 11:52:46 +02:00 committed by Jan Pochyla
parent e6486ad90a
commit 889315ba00

View File

@ -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