From 83c6e45bb2d75d606d1c52b945020575f1d1d5d6 Mon Sep 17 00:00:00 2001 From: Yadunandan Batchu Date: Wed, 15 May 2019 01:13:37 +0530 Subject: [PATCH] update the qrcode too --- src/ninja.singlewallet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ninja.singlewallet.js b/src/ninja.singlewallet.js index c0c7f85..2cff373 100644 --- a/src/ninja.singlewallet.js +++ b/src/ninja.singlewallet.js @@ -26,10 +26,11 @@ var bech32Address = bech32.encode('bc', bech32_words); var bitcoinAddress = key.getBitcoinAddress(); var privateKeyWif = key.getBitcoinWalletImportFormat(); - document.getElementById("btcaddress").innerHTML = opt_bech32 ? bech32Address : bitcoinAddress; + address = opt_bech32 ? bech32Address : bitcoinAddress + document.getElementById("btcaddress").innerHTML = address; document.getElementById("btcprivwif").innerHTML = privateKeyWif; var keyValuePair = { - "qrcode_public": bitcoinAddress, + "qrcode_public": address, "qrcode_private": privateKeyWif }; qrCode.showQrCode(keyValuePair, 4);