Skip to content

Commit

Permalink
fix covenantless/builder.go
Browse files Browse the repository at this point in the history
  • Loading branch information
louisinger committed Oct 18, 2024
1 parent 1e20a65 commit 0786457
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func (b *txBuilder) BuildAsyncPaymentTransactions(

dustAmount, err := b.wallet.GetDustAmount(context.Background())
if err != nil {
return nil, err
return "", err
}

for i, receiver := range receivers {
Expand All @@ -531,7 +531,7 @@ func (b *txBuilder) BuildAsyncPaymentTransactions(
if i == len(receivers)-1 {
value -= redeemTxMinRelayFee
if value <= dustAmount {
return nil, fmt.Errorf("change amount is dust amount")
return "", fmt.Errorf("change amount is dust amount")
}
}
outs = append(outs, &wire.TxOut{
Expand Down

0 comments on commit 0786457

Please sign in to comment.