Skip to content

Commit a59111d

Browse files
refactor(express): update operationId for verifyaddressV2
TICKET: WCI-224
1 parent 9c7a637 commit a59111d

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"61f039aad587c2000745c687373e0fa9": "{\"iv\":\"/Gnh+Ip1G+IOhy+Cms+umQ==\",\"v\":1,\"iter\":10000,\"ks\":256,\"ts\":64,\"mode\":\"ccm\",\"adata\":\"\",\"cipher\":\"aes\",\"salt\":\"FYnd1xwReTw=\",\"ct\":\"vgnCvdJ1Z9sqeV6urYxNsscwnkB/6eSPsZhzaW4Cuc7RKEY1uWNlleR0Tjtd8nlQuhsA5UXFpOID3lHHHjPDvB+jWtRm08I2F+HNGYuklWG12vIiSrY2KnkYRJkyCghn5Pq3iEimQb9M2kkwj5wf4EtfAiz9jsY=\"}"
3-
}
1+
{}

modules/express/src/clientRoutes.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ function handleV2UserREST(req: express.Request, res: express.Response, next: exp
362362
* handle v2 address validation
363363
* @param req
364364
*/
365-
function handleV2VerifyAddress(req: ExpressApiRouteRequest<'express.verifycoinaddress', 'post'>): { isValid: boolean } {
365+
function handleV2VerifyAddress(req: ExpressApiRouteRequest<'express.verifycoinaddress1', 'post'>): {
366+
isValid: boolean;
367+
} {
366368
const bitgo = req.bitgo;
367369
const coin = bitgo.coin(req.params.coin);
368370

@@ -1831,7 +1833,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void {
18311833

18321834
// Miscellaneous
18331835
router.post('express.canonicaladdress', [prepareBitGo(config), typedPromiseWrapper(handleCanonicalAddress)]);
1834-
router.post('express.verifycoinaddress', [prepareBitGo(config), typedPromiseWrapper(handleV2VerifyAddress)]);
1836+
router.post('express.verifycoinaddress1', [prepareBitGo(config), typedPromiseWrapper(handleV2VerifyAddress)]);
18351837
router.put('express.pendingapprovals', [prepareBitGo(config), typedPromiseWrapper(handleV2PendingApproval)]);
18361838

18371839
// lightning - pay invoice

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const ExpressVerifyAddressApiSpec = apiSpec({
9999
});
100100

101101
export const ExpressVerifyCoinAddressApiSpec = apiSpec({
102-
'express.verifycoinaddress': {
102+
'express.verifycoinaddress1': {
103103
post: PostVerifyCoinAddress,
104104
},
105105
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const VerifyAddressV2Body = {
2828
* Verify address for a given coin.
2929
*
3030
*
31-
* @operationId express.verifycoinaddress
31+
* @operationId express.verifycoinaddress1
3232
* @tag Express
3333
*/
3434
export const PostVerifyCoinAddress = httpRoute({

modules/express/test/unit/typedRoutes/decode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('io-ts decode tests', function () {
107107
address: 'some-address',
108108
});
109109
});
110-
it('express.verifycoinaddress', function () {
110+
it('express.verifycoinaddress1', function () {
111111
// invalid coin param type
112112
assert.throws(() =>
113113
assertDecode(t.type(VerifyAddressV2Params), {

0 commit comments

Comments
 (0)