Skip to content

Commit 32fd109

Browse files
chore(express): add return for node unlock
TICKET: BTC-000
1 parent 0e12dca commit 32fd109

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/express/src/lightning/lightningSignerRoutes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export async function handleGetLightningWalletState(req: express.Request): Promi
204204
/**
205205
* Handle the request to unlock a wallet in the signer.
206206
*/
207-
export async function handleUnlockLightningWallet(req: express.Request): Promise<void> {
207+
export async function handleUnlockLightningWallet(req: express.Request): Promise<{ message: string }> {
208208
const coinName = req.params.coin;
209209
if (!isLightningCoinName(coinName)) {
210210
throw new ApiResponseError(`Invalid coin to unlock lightning wallet: ${coinName}`, 400);
@@ -227,7 +227,8 @@ export async function handleUnlockLightningWallet(req: express.Request): Promise
227227
const lndSignerClient = await LndSignerClient.create(walletId, req.config);
228228
// The passphrase at LND can only accommodate a base64 character set
229229
// For more information, see BTC-1851
230-
return await lndSignerClient.unlockWallet({
230+
await lndSignerClient.unlockWallet({
231231
wallet_password: Buffer.from(passphrase).toString('base64'),
232232
});
233+
return { message: 'ok' };
233234
}

0 commit comments

Comments
 (0)