Skip to content

Commit 75183ed

Browse files
Merge pull request #8571 from BitGo/WCI-50_operationId
refactor(express): update operationId walletSigntxV2
2 parents caab71d + 8c33a73 commit 75183ed

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
@@ -730,7 +730,7 @@ async function handleV2AcceptWalletShare(req: express.Request) {
730730
/**
731731
* handle wallet sign transaction
732732
*/
733-
async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.v2.wallet.signtx', 'post'>) {
733+
async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.wallet.signtx', 'post'>) {
734734
const bitgo = req.bitgo;
735735
const coin = bitgo.coin(req.decoded.coin);
736736
const wallet = await coin.wallets().get({ id: req.decoded.id });
@@ -1783,7 +1783,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
17831783

17841784
// sign transaction
17851785
router.post('express.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]);
1786-
router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]);
1786+
router.post('express.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]);
17871787
router.post('express.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]);
17881788
router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]);
17891789

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export const ExpressExternalSigningApiSpec = apiSpec({
288288
});
289289

290290
export const ExpressWalletSigningApiSpec = apiSpec({
291-
'express.v2.wallet.signtx': {
291+
'express.wallet.signtx': {
292292
post: PostWalletSignTx,
293293
},
294294
'express.wallet.signtxtss': {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const WalletSignTxResponse = {
144144
/**
145145
* 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.
146146
*
147-
* @operationId express.v2.wallet.signtx
147+
* @operationId express.wallet.signtx
148148
* @tag Express
149149
*/
150150
export const PostWalletSignTx: HttpRoute<'post'> = httpRoute({

0 commit comments

Comments
 (0)