diff --git a/app/lnd/methods/walletController.js b/app/lnd/methods/walletController.js index cfc4a4dd..8bee1dd9 100644 --- a/app/lnd/methods/walletController.js +++ b/app/lnd/methods/walletController.js @@ -112,7 +112,7 @@ export function genSeed(walletUnlocker) { */ export function unlockWallet(walletUnlocker, { wallet_password }) { return new Promise((resolve, reject) => { - walletUnlocker.unlockWallet({ wallet_password }, (err, data) => { + walletUnlocker.unlockWallet({ wallet_password: Buffer.from(wallet_password) }, (err, data) => { if (err) { reject(err) } resolve(data) @@ -128,7 +128,7 @@ export function unlockWallet(walletUnlocker, { wallet_password }) { export function initWallet(walletUnlocker, { wallet_password, cipher_seed_mnemonic, aezeed_passphrase }) { return new Promise((resolve, reject) => { walletUnlocker.initWallet({ - wallet_password, + wallet_password: Buffer.from(wallet_password), cipher_seed_mnemonic, aezeed_passphrase: Buffer.from(aezeed_passphrase, 'hex'), recovery_window: 250