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.",