Skip to content

Commit

Permalink
Merge pull request #275 from louisinger/fix-covenantless-round-tx-wit…
Browse files Browse the repository at this point in the history
…nessutxo

fix: AddInWitnessUtxo in covenantless `txBuilder`
  • Loading branch information
bordalix authored Aug 23, 2024
2 parents a84195f + 4ddbcd1 commit 2ffc478
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ func (b *txBuilder) createPoolTx(
if err != nil {
return nil, err
}
for _, utxo := range utxos {
for inIndex, utxo := range utxos {
script, err := hex.DecodeString(utxo.GetScript())
if err != nil {
return nil, err
Expand All @@ -633,7 +633,7 @@ func (b *txBuilder) createPoolTx(
if err := updater.AddInWitnessUtxo(&wire.TxOut{
Value: int64(utxo.GetValue()),
PkScript: script,
}, 0); err != nil {
}, inIndex); err != nil {
return nil, err
}
}
Expand Down

0 comments on commit 2ffc478

Please sign in to comment.