File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/express/src/lightning Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ export async function handleGetLightningWalletState(req: express.Request): Promi
204
204
/**
205
205
* Handle the request to unlock a wallet in the signer.
206
206
*/
207
- export async function handleUnlockLightningWallet ( req : express . Request ) : Promise < void > {
207
+ export async function handleUnlockLightningWallet ( req : express . Request ) : Promise < { message : string } > {
208
208
const coinName = req . params . coin ;
209
209
if ( ! isLightningCoinName ( coinName ) ) {
210
210
throw new ApiResponseError ( `Invalid coin to unlock lightning wallet: ${ coinName } ` , 400 ) ;
@@ -227,7 +227,8 @@ export async function handleUnlockLightningWallet(req: express.Request): Promise
227
227
const lndSignerClient = await LndSignerClient . create ( walletId , req . config ) ;
228
228
// The passphrase at LND can only accommodate a base64 character set
229
229
// For more information, see BTC-1851
230
- return await lndSignerClient . unlockWallet ( {
230
+ await lndSignerClient . unlockWallet ( {
231
231
wallet_password : Buffer . from ( passphrase ) . toString ( 'base64' ) ,
232
232
} ) ;
233
+ return { message : 'ok' } ;
233
234
}
You can’t perform that action at this time.
0 commit comments