Change PrecomputePSBTData to use GetUnsignedTx

This commit is contained in:
Ava Chow 2024-07-22 17:14:29 -04:00
parent 27da84b84b
commit 2e8f0caa8c

View file

@ -480,7 +480,7 @@ void UpdatePSBTOutput(const SigningProvider& provider, PartiallySignedTransactio
PrecomputedTransactionData PrecomputePSBTData(const PartiallySignedTransaction& psbt)
{
const CMutableTransaction& tx = *psbt.tx;
const CMutableTransaction& tx = psbt.GetUnsignedTx();
bool have_all_spent_outputs = true;
std::vector<CTxOut> utxos;
for (const PSBTInput& input : psbt.inputs) {