From 0786457809fc536bb6467e0d996a85973aa7fb80 Mon Sep 17 00:00:00 2001 From: louisinger Date: Fri, 18 Oct 2024 12:14:09 +0200 Subject: [PATCH] fix covenantless/builder.go --- .../infrastructure/tx-builder/covenantless/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/internal/infrastructure/tx-builder/covenantless/builder.go b/server/internal/infrastructure/tx-builder/covenantless/builder.go index b070e72c6..bb22549d5 100644 --- a/server/internal/infrastructure/tx-builder/covenantless/builder.go +++ b/server/internal/infrastructure/tx-builder/covenantless/builder.go @@ -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 { @@ -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{