Skip to content

Commit e86ccb9

Browse files
authored
Merge pull request #893 from hieblmi/fix-withdraw-request-params
staticaddr: fix withdraw backwards compat
2 parents 10c15c0 + c1c809d commit e86ccb9

File tree

3 files changed

+187
-172
lines changed

3 files changed

+187
-172
lines changed

staticaddr/withdraw/manager.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,12 @@ func (m *Manager) createFinalizedWithdrawalTx(ctx context.Context,
410410
// responsible for that.
411411
resp, err := m.cfg.StaticAddressServerClient.ServerWithdrawDeposits(
412412
ctx, &staticaddressrpc.ServerWithdrawRequest{
413-
Outpoints: toPrevoutInfo(outpoints),
414-
ClientNonces: clientNonces,
415-
ClientWithdrawalAddr: withdrawalAddress.String(),
416-
WithdrawAmount: int64(withdrawAmount),
417-
ChangeAmount: int64(changeAmount),
413+
Outpoints: toPrevoutInfo(outpoints),
414+
ClientNonces: clientNonces,
415+
ClientSweepAddr: withdrawalAddress.String(),
416+
TxFeeRate: uint64(withdrawalSweepFeeRate),
417+
WithdrawAmount: int64(withdrawAmount),
418+
ChangeAmount: int64(changeAmount),
418419
},
419420
)
420421
if err != nil {

0 commit comments

Comments
 (0)