Skip to content

Commit a7e0229

Browse files
committed
refactor: fixed issue in index.ts as well as adding const cast to codec def
TICKET: WP-5446
1 parent 592e908 commit a7e0229

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const ExpressApi = apiSpec({
4848
},
4949
'express.lightning.unlockWallet': {
5050
post: PostUnlockLightningWallet,
51+
},
5152
'express.verifycoinaddress': {
5253
post: PostVerifyCoinAddress,
5354
},

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import { BitgoExpressError } from '../../schemas/error';
1010
export const UnlockLightningWalletParams = {
1111
coin: t.string,
1212
id: t.string,
13-
};
13+
} as const;
1414

1515
/**
1616
* Request body for unlocking a lightning wallet
1717
* @property {string} passphrase - Passphrase to unlock the lightning wallet.
1818
*/
1919
export const UnlockLightningWalletBody = {
2020
passphrase: t.string,
21-
};
21+
} as const;
2222

2323
/**
2424
* Lightning - Unlock node

0 commit comments

Comments
 (0)