Skip to content

Commit 6d3f65a

Browse files
committed
looprpc: rename field in WithdrawDepositsResponse
It returns an address, but the field was called pk_script, which was confusing. Also renamed it in the code.
1 parent d7d9e2d commit 6d3f65a

File tree

5 files changed

+453
-457
lines changed

5 files changed

+453
-457
lines changed

loopd/swapclient_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ func (s *swapClientServer) WithdrawDeposits(ctx context.Context,
15801580
}
15811581
}
15821582

1583-
txhash, pkScript, err := s.withdrawalManager.DeliverWithdrawalRequest(
1583+
txhash, address, err := s.withdrawalManager.DeliverWithdrawalRequest(
15841584
ctx, outpoints, req.DestAddr, req.SatPerVbyte, req.Amount,
15851585
)
15861586
if err != nil {
@@ -1589,7 +1589,7 @@ func (s *swapClientServer) WithdrawDeposits(ctx context.Context,
15891589

15901590
return &looprpc.WithdrawDepositsResponse{
15911591
WithdrawalTxHash: txhash,
1592-
PkScript: pkScript,
1592+
Address: address,
15931593
}, err
15941594
}
15951595

0 commit comments

Comments
 (0)