Skip to content

Commit 8c4c035

Browse files
authored
Merge pull request #8490 from BitGo/WCI-51-recover-token-operation-id
docs(express): updated operationId for recoverTokenV2
2 parents c07d32b + 152746e commit 8c4c035

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
@@ -755,7 +755,7 @@ async function handleV2SignTx(req: ExpressApiRouteRequest<'express.v2.coin.signt
755755
* handle wallet recover token
756756
* @param req
757757
*/
758-
async function handleV2RecoverToken(req: ExpressApiRouteRequest<'express.v2.wallet.recovertoken', 'post'>) {
758+
async function handleV2RecoverToken(req: ExpressApiRouteRequest<'express.wallet.recovertoken', 'post'>) {
759759
const bitgo = req.bitgo;
760760
const coin = bitgo.coin(req.params.coin);
761761

@@ -1777,7 +1777,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
17771777
router.post('express.v2.coin.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]);
17781778
router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]);
17791779
router.post('express.v2.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]);
1780-
router.post('express.v2.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]);
1780+
router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]);
17811781

17821782
// send transaction
17831783
router.post('express.v2.wallet.sendcoins', [prepareBitGo(config), typedPromiseWrapper(handleV2SendOne)]);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export const ExpressOfcSignPayloadApiSpec = apiSpec({
257257
});
258258

259259
export const ExpressWalletRecoverTokenApiSpec = apiSpec({
260-
'express.v2.wallet.recovertoken': {
260+
'express.wallet.recovertoken': {
261261
post: PostWalletRecoverToken,
262262
},
263263
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const RecoverTokenResponse = t.type({
6060
/**
6161
* Recover an unsupported Ethereum token from a BitGo multisig wallet
6262
*
63-
* @operationId express.v2.wallet.recovertoken
63+
* @operationId express.wallet.recovertoken
6464
* @tag Express
6565
*/
6666
export const PostWalletRecoverToken = httpRoute({

0 commit comments

Comments
 (0)