Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions modules/express/src/clientRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,7 @@ async function handleV2RecoverToken(req: ExpressApiRouteRequest<'express.wallet.
* handle wallet fanout unspents
* @param req
*/
async function handleV2ConsolidateUnspents(
req: ExpressApiRouteRequest<'express.v2.wallet.consolidateunspents', 'post'>
) {
async function handleV2ConsolidateUnspents(req: ExpressApiRouteRequest<'express.wallet.consolidateunspents', 'post'>) {
const bitgo = req.bitgo;
const coin = bitgo.coin(req.decoded.coin);
const wallet = await coin.wallets().get({ id: req.decoded.id });
Expand Down Expand Up @@ -1801,7 +1799,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
router.post('express.v2.wallet.enableTokens', [prepareBitGo(config), typedPromiseWrapper(handleV2EnableTokens)]);

// unspent changes
router.post('express.v2.wallet.consolidateunspents', [
router.post('express.wallet.consolidateunspents', [
prepareBitGo(config),
typedPromiseWrapper(handleV2ConsolidateUnspents),
]);
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const ExpressWalletConsolidateUnspentsApiSpec = apiSpec({
'express.v1.wallet.consolidateunspents': {
put: PutConsolidateUnspents,
},
'express.v2.wallet.consolidateunspents': {
'express.wallet.consolidateunspents': {
post: PostConsolidateUnspents,
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const ConsolidateUnspentsResponse = t.union([
/**
* Builds, signs, and sends a transaction to consolidate unspents all in 1 call. Consolidating unspents is only for UTXO-based assets.
*
* @operationId express.v2.wallet.consolidateunspents
* @operationId express.wallet.consolidateunspents
* @tag Express
*/
export const PostConsolidateUnspents = httpRoute({
Expand Down
Loading