From 163220e4b76b8a5366f57d919ef37f3faf70ed66 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Mon, 16 Mar 2020 16:36:36 +0000 Subject: [PATCH] core/wallet: properly check decred input --- core/src/apps/wallet/sign_tx/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/apps/wallet/sign_tx/helpers.py b/core/src/apps/wallet/sign_tx/helpers.py index 658c7ce38b..da5b31438c 100644 --- a/core/src/apps/wallet/sign_tx/helpers.py +++ b/core/src/apps/wallet/sign_tx/helpers.py @@ -203,7 +203,7 @@ def sanitize_tx_input(tx: TransactionType, coin: CoinInfo) -> TxInputType: raise SigningError( FailureType.DataError, "Input's address_n provided but not expected.", ) - if txi.decred_script_version or txi.decred_script_version and not coin.decred: + if (txi.decred_script_version or txi.decred_script_version) and not coin.decred: raise SigningError( FailureType.DataError, "Decred details provided but Decred coin not specified.",