From 8c33a738556077b727fd7f2de7e1ed6c410f1633 Mon Sep 17 00:00:00 2001 From: Dadam Rishikesh Reddy Date: Mon, 20 Apr 2026 14:34:36 +0530 Subject: [PATCH] refactor(express): update operationId walletSigntxV2 TICKET: WCI-50 --- modules/express/src/clientRoutes.ts | 4 ++-- modules/express/src/typedRoutes/api/index.ts | 2 +- modules/express/src/typedRoutes/api/v2/walletSignTx.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index 9b876303b5..5d68f34095 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -730,7 +730,7 @@ async function handleV2AcceptWalletShare(req: express.Request) { /** * handle wallet sign transaction */ -async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.v2.wallet.signtx', 'post'>) { +async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.wallet.signtx', 'post'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.decoded.coin); const wallet = await coin.wallets().get({ id: req.decoded.id }); @@ -1785,7 +1785,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { // sign transaction router.post('express.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]); - router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]); + router.post('express.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]); router.post('express.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]); router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]); diff --git a/modules/express/src/typedRoutes/api/index.ts b/modules/express/src/typedRoutes/api/index.ts index 6b08dff1ce..b672dfb355 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -288,7 +288,7 @@ export const ExpressExternalSigningApiSpec = apiSpec({ }); export const ExpressWalletSigningApiSpec = apiSpec({ - 'express.v2.wallet.signtx': { + 'express.wallet.signtx': { post: PostWalletSignTx, }, 'express.wallet.signtxtss': { diff --git a/modules/express/src/typedRoutes/api/v2/walletSignTx.ts b/modules/express/src/typedRoutes/api/v2/walletSignTx.ts index 814df3bb4b..69a9d07bd6 100644 --- a/modules/express/src/typedRoutes/api/v2/walletSignTx.ts +++ b/modules/express/src/typedRoutes/api/v2/walletSignTx.ts @@ -144,7 +144,7 @@ export const WalletSignTxResponse = { /** * Sign transactions for multisignature wallets using external-signing mode. You must maintain your keys, in the clear, on a separate Express server. BitGo doesn't decrypt your private keys. * - * @operationId express.v2.wallet.signtx + * @operationId express.wallet.signtx * @tag Express */ export const PostWalletSignTx: HttpRoute<'post'> = httpRoute({