Skip to content
Permalink
Browse files

fix(lnd): ensure lndconnect qrcode uses embeded format

  • Loading branch information...
mrfelton committed Jun 11, 2019
1 parent 86925cd commit 11794ca6834fba01bff65bfa3e7ed004d8719ecc
Showing with 3 additions and 1 deletion.
  1. +3 −1 utils/lndConfig.js
@@ -265,7 +265,9 @@ class LndConfig {
* @returns {string} Embedded lndconnect uri
*/
static async qrcodeFromLndconnectUri(lndconnectUri) {
const { host, cert, macaroon } = lndconnect.decode(lndconnectUri)
let { host, cert, macaroon } = lndconnect.decode(lndconnectUri)
cert = safeUntildify(cert)
macaroon = safeUntildify(macaroon)
const [certData, macaroonData] = await Promise.all([
isAbsolute(cert) ? readFile(cert) : cert,
isAbsolute(macaroon) ? readFile(macaroon) : macaroon,

0 comments on commit 11794ca

Please sign in to comment.
You can’t perform that action at this time.