Skip to content

Commit 02282df

Browse files
authored
Merge pull request #7633 from BitGo/WP-6972-fix-operationId
fix: fix the operation id to be according to the doc
2 parents add31ba + 6bd7be3 commit 02282df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/express/src/clientRoutes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function handleV2VerifyAddress(req: ExpressApiRouteRequest<'express.verifycoinad
374374
* handle address canonicalization
375375
* @param req
376376
*/
377-
function handleCanonicalAddress(req: ExpressApiRouteRequest<'express.v2.canonicaladdress', 'post'>) {
377+
function handleCanonicalAddress(req: ExpressApiRouteRequest<'express.canonicaladdress', 'post'>) {
378378
const bitgo = req.bitgo;
379379
const coin = bitgo.coin(req.decoded.coin);
380380
if (!['ltc', 'bch', 'bsv'].includes(coin.getFamily())) {
@@ -1696,7 +1696,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
16961696
]);
16971697

16981698
// Miscellaneous
1699-
router.post('express.v2.canonicaladdress', [prepareBitGo(config), typedPromiseWrapper(handleCanonicalAddress)]);
1699+
router.post('express.canonicaladdress', [prepareBitGo(config), typedPromiseWrapper(handleCanonicalAddress)]);
17001700
router.post('express.verifycoinaddress', [prepareBitGo(config), typedPromiseWrapper(handleV2VerifyAddress)]);
17011701
router.put('express.v2.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]);
17021702

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export const ExpressWalletManagementApiSpec = apiSpec({
300300
});
301301

302302
export const ExpressV2CanonicalAddressApiSpec = apiSpec({
303-
'express.v2.canonicaladdress': {
303+
'express.canonicaladdress': {
304304
post: PostCanonicalAddress,
305305
},
306306
});

0 commit comments

Comments
 (0)