update the qrcode too

This commit is contained in:
Yadunandan Batchu 2019-05-15 01:13:37 +05:30
parent f53baa3de8
commit 83c6e45bb2

View file

@ -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);