Update PSBT::UpdatePSBTOutput to use GetUnsignedTx

This commit is contained in:
Ava Chow 2024-07-22 17:14:47 -04:00
parent 55cc7cd4c8
commit e79474e561

View file

@ -533,7 +533,7 @@ size_t CountPSBTUnsignedInputs(const PartiallySignedTransaction& psbt) {
void UpdatePSBTOutput(const SigningProvider& provider, PartiallySignedTransaction& psbt, int index)
{
CMutableTransaction& tx = *Assert(psbt.tx);
CMutableTransaction tx = psbt.GetUnsignedTx();
const CTxOut& out = tx.vout.at(index);
PSBTOutput& psbt_out = psbt.outputs.at(index);