wallet: total amount fix (#318)

pull/25/head
Tomas Susanka 6 years ago committed by Jan Pochyla
parent e6486ad90a
commit 889315ba00

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

Loading…
Cancel
Save