Skip to content

Commit c94c722

Browse files
authored
Merge pull request #144 from BitGo/WP-6571
fix(mbe): remove txformat as input params to handle consolidation
2 parents 4f22813 + 60cf79a commit c94c722

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

masterBitgoExpress.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -432,15 +432,6 @@
432432
"targetAddress": {
433433
"type": "string",
434434
"description": "Target address for consolidation"
435-
},
436-
"txFormat": {
437-
"type": "string",
438-
"enum": [
439-
"legacy",
440-
"psbt",
441-
"psbt-lite"
442-
],
443-
"description": "Transaction format"
444435
}
445436
},
446437
"required": [

src/__tests__/api/master/consolidateUnspents.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ describe('POST /api/:coin/wallet/:walletId/consolidateunspents', () => {
324324
limit: 100,
325325
numUnspentsToMake: 10,
326326
targetAddress: 'tb1q...',
327-
txFormat: 'psbt' as const,
328327
};
329328

330329
const response = await agent

src/masterBitgoExpress/handlers/handleConsolidateUnspents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export async function handleConsolidateUnspents(
3535
...params,
3636
customSigningFunction,
3737
reqId,
38+
txFormat: 'psbt-lite',
3839
};
3940

4041
// Send consolidate unspents

src/masterBitgoExpress/routers/consolidateUnspentsRoute.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ export const ConsolidateUnspentsRequest = {
6363
* Target address for consolidation
6464
*/
6565
targetAddress: optional(t.string),
66-
/**
67-
* Transaction format
68-
*/
69-
txFormat: optional(t.union([t.literal('legacy'), t.literal('psbt'), t.literal('psbt-lite')])),
7066
};
7167

7268
export const ConsolidateUnspentsResponse: HttpResponse = {

0 commit comments

Comments
 (0)