diff --git a/src/psbt.h b/src/psbt.h index eeb47610c4..697d97a06d 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -761,7 +761,7 @@ struct PartiallySignedTransaction // Write serialized tx to a stream OverrideStream os(&s, s.GetType(), s.GetVersion() | SERIALIZE_TRANSACTION_NO_WITNESS); - SerializeToVector(os, *tx); + SerializeToVector(os, GetUnsignedTx()); } // Write xpubs