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 @@ -850,7 +850,7 @@ async function handleV2FanOutUnspents(req: ExpressApiRouteRequest<'express.walle
* handle wallet sweep
* @param req
*/
async function handleV2Sweep(req: ExpressApiRouteRequest<'express.v2.wallet.sweep', 'post'>) {
async function handleV2Sweep(req: ExpressApiRouteRequest<'express.wallet.sweep', '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 @@ -1807,7 +1807,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
]);
router.post('express.wallet.fanoutunspents', [prepareBitGo(config), typedPromiseWrapper(handleV2FanOutUnspents)]);

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

// CPFP
router.post('express.wallet.acceleratetx', [
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 @@ -318,7 +318,7 @@ export const ExpressV2CanonicalAddressApiSpec = apiSpec({
});

export const ExpressV2WalletSweepApiSpec = apiSpec({
'express.v2.wallet.sweep': {
'express.wallet.sweep': {
post: PostWalletSweep,
},
});
Expand Down
2 changes: 1 addition & 1 deletion modules/express/src/typedRoutes/api/v2/walletSweep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const WalletSweepBody = {
/**
* 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.
*
* @operationId express.v2.wallet.sweep
* @operationId express.wallet.sweep
* @tag Express
*/
export const PostWalletSweep = httpRoute({
Expand Down
Loading