Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/express/src/clientRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ async function handleV2AcceptWalletShare(req: express.Request) {
/**
* handle wallet sign transaction
*/
async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.v2.wallet.signtx', 'post'>) {
async function handleV2SignTxWallet(req: ExpressApiRouteRequest<'express.wallet.signtx', 'post'>) {
const bitgo = req.bitgo;
const coin = bitgo.coin(req.decoded.coin);
const wallet = await coin.wallets().get({ id: req.decoded.id });
Expand Down Expand Up @@ -1785,7 +1785,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {

// sign transaction
router.post('express.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTx)]);
router.post('express.v2.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]);
router.post('express.wallet.signtx', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTxWallet)]);
router.post('express.wallet.signtxtss', [prepareBitGo(config), typedPromiseWrapper(handleV2SignTSSWalletTx)]);
router.post('express.wallet.recovertoken', [prepareBitGo(config), typedPromiseWrapper(handleV2RecoverToken)]);

Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export const ExpressExternalSigningApiSpec = apiSpec({
});

export const ExpressWalletSigningApiSpec = apiSpec({
'express.v2.wallet.signtx': {
'express.wallet.signtx': {
post: PostWalletSignTx,
},
'express.wallet.signtxtss': {
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v2/walletSignTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const WalletSignTxResponse = {
/**
* 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.
*
* @operationId express.v2.wallet.signtx
* @operationId express.wallet.signtx
* @tag Express
*/
export const PostWalletSignTx: HttpRoute<'post'> = httpRoute({
Expand Down
Loading