Skip to content

Commit

Permalink
fix(sdk-core): use BuildParams.encode when consolidating unspents
Browse files Browse the repository at this point in the history
Issue: BTC-576
  • Loading branch information
OttoAllmendinger committed Oct 30, 2023
1 parent 8f9d08c commit ef5da11
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from '../pendingApproval';
import { RequestTracer, TssUtils } from '../utils';
import { IWallet } from '../wallet';
import { BuildParams } from '../wallet/BuildParams';

export class PendingApproval implements IPendingApproval {
private readonly bitgo: BitGoBase;
Expand Down Expand Up @@ -337,7 +338,7 @@ export class PendingApproval implements IPendingApproval {
// it needs to be rebuilt using the special consolidation build route
prebuildParams.prebuildTx = await this.bitgo
.post(this.wallet.url(`/consolidateUnspents`))
.send(prebuildParams)
.send(BuildParams.encode(prebuildParams))
.result();
delete prebuildParams.recipients;
}
Expand Down

0 comments on commit ef5da11

Please sign in to comment.