Skip to content

Commit a68db97

Browse files
docs(express): update operationId consolidateAccount V2
TICKET: WCI-181
1 parent 9584aa0 commit a68db97

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

modules/express/src/clientRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ async function handleV2ConsolidateUnspents(
788788
* @param req
789789
*/
790790
export async function handleV2ConsolidateAccount(
791-
req: ExpressApiRouteRequest<'express.v2.wallet.consolidateaccount', 'post'>
791+
req: ExpressApiRouteRequest<'express.wallet.consolidateaccount', 'post'>
792792
) {
793793
const bitgo = req.bitgo;
794794
const coin = bitgo.coin(req.decoded.coin);
@@ -1816,7 +1816,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
18161816
]);
18171817

18181818
// account-based
1819-
router.post('express.v2.wallet.consolidateaccount', [
1819+
router.post('express.wallet.consolidateaccount', [
18201820
prepareBitGo(config),
18211821
typedPromiseWrapper(handleV2ConsolidateAccount),
18221822
]);

modules/express/src/typedRoutes/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const ExpressWalletConsolidateUnspentsApiSpec = apiSpec({
171171
});
172172

173173
export const ExpressV2WalletConsolidateAccountApiSpec = apiSpec({
174-
'express.v2.wallet.consolidateaccount': {
174+
'express.wallet.consolidateaccount': {
175175
post: PostConsolidateAccount,
176176
},
177177
});

modules/express/src/typedRoutes/api/v2/consolidateAccount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const ConsolidateAccountErrorResponse = t.intersection([ConsolidateAccoun
253253
/**
254254
* Build, sign, and send a consolidation transaction for an account-based asset all in 1 call. For account-based assets, consolidating the balances in the receive addresses to the base address maximizes the spendable balance of a wallet.
255255
*
256-
* @operationId express.v2.wallet.consolidateaccount
256+
* @operationId express.wallet.consolidateaccount
257257
* @tag Express
258258
*/
259259
export const PostConsolidateAccount = httpRoute({

0 commit comments

Comments
 (0)