From 6bd7be391fa99bf067a4f1b78b3483e97b1f44ba Mon Sep 17 00:00:00 2001 From: Marzooqa Naeema Kather Date: Wed, 26 Nov 2025 15:05:00 +0530 Subject: [PATCH] fix: fix the operation id to be according to the doc TICKET: WP-6972 --- modules/express/src/clientRoutes.ts | 4 ++-- modules/express/src/typedRoutes/api/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index 6c1c53becd..85cbc25fe0 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -374,7 +374,7 @@ function handleV2VerifyAddress(req: ExpressApiRouteRequest<'express.verifycoinad * handle address canonicalization * @param req */ -function handleCanonicalAddress(req: ExpressApiRouteRequest<'express.v2.canonicaladdress', 'post'>) { +function handleCanonicalAddress(req: ExpressApiRouteRequest<'express.canonicaladdress', 'post'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.decoded.coin); if (!['ltc', 'bch', 'bsv'].includes(coin.getFamily())) { @@ -1696,7 +1696,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { ]); // Miscellaneous - router.post('express.v2.canonicaladdress', [prepareBitGo(config), typedPromiseWrapper(handleCanonicalAddress)]); + router.post('express.canonicaladdress', [prepareBitGo(config), typedPromiseWrapper(handleCanonicalAddress)]); router.post('express.verifycoinaddress', [prepareBitGo(config), typedPromiseWrapper(handleV2VerifyAddress)]); router.put('express.v2.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]); diff --git a/modules/express/src/typedRoutes/api/index.ts b/modules/express/src/typedRoutes/api/index.ts index 86df2f5196..33afb203c7 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -300,7 +300,7 @@ export const ExpressWalletManagementApiSpec = apiSpec({ }); export const ExpressV2CanonicalAddressApiSpec = apiSpec({ - 'express.v2.canonicaladdress': { + 'express.canonicaladdress': { post: PostCanonicalAddress, }, });