Skip to content

Commit e58a9a7

Browse files
authored
Merge pull request #8489 from BitGo/WCI-58-send-coins-v2-operation-id
docs(express): updated operationId for sendCoinsV2
2 parents 8c4c035 + 85aa434 commit e58a9a7

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
@@ -930,7 +930,7 @@ function createTSSSendParams(req: express.Request, wallet: Wallet) {
930930
* handle send one
931931
* @param req
932932
*/
933-
async function handleV2SendOne(req: ExpressApiRouteRequest<'express.v2.wallet.sendcoins', 'post'>) {
933+
async function handleV2SendOne(req: ExpressApiRouteRequest<'express.wallet.sendcoins', 'post'>) {
934934
const bitgo = req.bitgo;
935935
const coin = bitgo.coin(req.decoded.coin);
936936
const reqId = new RequestTracer();
@@ -1780,7 +1780,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
17801780
router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]);
17811781

17821782
// send transaction
1783-
router.post('express.v2.wallet.sendcoins', [prepareBitGo(config), typedPromiseWrapper(handleV2SendOne)]);
1783+
router.post('express.wallet.sendcoins', [prepareBitGo(config), typedPromiseWrapper(handleV2SendOne)]);
17841784
router.post('express.v2.wallet.sendmany', [prepareBitGo(config), typedPromiseWrapper(handleV2SendMany)]);
17851785
router.post('express.v2.wallet.prebuildandsigntransaction', [
17861786
prepareBitGo(config),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export const ExpressV2WalletSendManyApiSpec = apiSpec({
203203
});
204204

205205
export const ExpressV2WalletSendCoinsApiSpec = apiSpec({
206-
'express.v2.wallet.sendcoins': {
206+
'express.wallet.sendcoins': {
207207
post: PostSendCoins,
208208
},
209209
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export const SendCoinsRequestBody = {
409409
/**
410410
* This call allows you to create and send cryptocurrency to a destination address.
411411
*
412-
* @operationId express.v2.wallet.sendcoins
412+
* @operationId express.wallet.sendcoins
413413
* @tag express
414414
*/
415415
export const PostSendCoins = httpRoute({

0 commit comments

Comments
 (0)