diff --git a/hwilib/psbt.py b/hwilib/psbt.py index 28b5e1888..ca226d617 100644 --- a/hwilib/psbt.py +++ b/hwilib/psbt.py @@ -1047,7 +1047,7 @@ def cache_unsigned_tx_pieces(self) -> None: """ # To make things easier, we split up the global transaction # and use the PSBTv2 fields for PSBTv0 - if self.tx is not None: + if self.version == 0: self.setup_from_tx(self.tx) def setup_from_tx(self, tx: CTransaction):