Skip to content

Commit

Permalink
use varadic function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tíghearnán Carroll committed Oct 4, 2021
1 parent 7440322 commit 504e664
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions txinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,8 @@ func (tx *Tx) Fund(ctx context.Context, fq *FeeQuote, next UTXOGetterFunc) error
return err
}

for _, utxo := range utxos {
if err = tx.FromUTXOs(utxo); err != nil {
return err
}
if err = tx.FromUTXOs(utxos...); err != nil {
return err
}

deficit, err = tx.estimateDeficit(fq)
Expand Down

0 comments on commit 504e664

Please sign in to comment.