Skip to content

Commit da3eb6a

Browse files
docs(express): update operationId for walletsweepV2
1 parent 3f16d0d commit da3eb6a

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
@@ -850,7 +850,7 @@ async function handleV2FanOutUnspents(req: ExpressApiRouteRequest<'express.walle
850850
* handle wallet sweep
851851
* @param req
852852
*/
853-
async function handleV2Sweep(req: ExpressApiRouteRequest<'express.v2.wallet.sweep', 'post'>) {
853+
async function handleV2Sweep(req: ExpressApiRouteRequest<'express.wallet.sweep', 'post'>) {
854854
const bitgo = req.bitgo;
855855
const coin = bitgo.coin(req.decoded.coin);
856856
const wallet = await coin.wallets().get({ id: req.decoded.id });
@@ -1807,7 +1807,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
18071807
]);
18081808
router.post('express.wallet.fanoutunspents', [prepareBitGo(config), typedPromiseWrapper(handleV2FanOutUnspents)]);
18091809

1810-
router.post('express.v2.wallet.sweep', [prepareBitGo(config), typedPromiseWrapper(handleV2Sweep)]);
1810+
router.post('express.wallet.sweep', [prepareBitGo(config), typedPromiseWrapper(handleV2Sweep)]);
18111811

18121812
// CPFP
18131813
router.post('express.wallet.acceleratetx', [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export const ExpressV2CanonicalAddressApiSpec = apiSpec({
318318
});
319319

320320
export const ExpressV2WalletSweepApiSpec = apiSpec({
321-
'express.v2.wallet.sweep': {
321+
'express.wallet.sweep': {
322322
post: PostWalletSweep,
323323
},
324324
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const WalletSweepBody = {
5252
/**
5353
* The sweep call spends the full balance of the wallet to the provided address. On UTXO coins, the sweep call will fail if the wallet has any unconfirmed funds, or if there are more unspents than can be sent with a single transaction.
5454
*
55-
* @operationId express.v2.wallet.sweep
55+
* @operationId express.wallet.sweep
5656
* @tag Express
5757
*/
5858
export const PostWalletSweep = httpRoute({

0 commit comments

Comments
 (0)