Skip to content

Commit

Permalink
Merge pull request #349 from theQRL/devnet
Browse files Browse the repository at this point in the history
 Remove redundant async.timeout for U2F Ledger Nano interface
  • Loading branch information
scottdonaldau authored Mar 3, 2019
2 parents ccd3cef + fecc874 commit a0908b9
Show file tree
Hide file tree
Showing 34 changed files with 99 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .electrify/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .electrify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "QRLWallet",
"productName": "QRLWallet",
"projectName": "qrl-wallet",
"version": "1.1.0",
"version": "1.1.1",
"main": "index.js",
"dependencies": {
"electrify-qrl": "0.2.3",
Expand Down
7 changes: 2 additions & 5 deletions imports/startup/both/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './nodes.js'

// Define amount of SHOR contained per QUANTA (10^9)
SHOR_PER_QUANTA = 1000000000

// qrl-wallet Version
WALLET_VERSION = '1.1.0'

// Ledger Timeout
LEDGER_TIMEOUT = 29000
WALLET_VERSION = '1.1.1'

// qrl.proto sha256 sum for each release of QRL Node
QRLPROTO_SHA256 = [
Expand Down
2 changes: 1 addition & 1 deletion imports/startup/client/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import aes256 from 'aes256'
import qrlAddressValdidator from '@theqrl/validate-qrl-address'
Expand Down
2 changes: 1 addition & 1 deletion imports/startup/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import { QRLLIB } from 'qrllib/build/web-libjsqrl.js' // eslint-disable-line
import './routes.js'
Expand Down
2 changes: 1 addition & 1 deletion imports/startup/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import { Meteor } from 'meteor/meteor'
import { check } from 'meteor/check'
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/close/close.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './close.html'

Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/create/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import aes256 from 'aes256'
import './address.html'
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/create/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './create.html'

Expand Down
21 changes: 7 additions & 14 deletions imports/ui/pages/open/open.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import aes256 from 'aes256'
import async from 'async'
Expand Down Expand Up @@ -100,18 +100,11 @@ function getLedgerLibraryVersion(callback) {
}
}

// Wrap ledger calls in async.timeout
const getLedgerStateWrapper = async.timeout(getLedgerState, LEDGER_TIMEOUT)
const getLedgerPubkeyWrapper = async.timeout(getLedgerPubkey, LEDGER_TIMEOUT)
const getLedgerVersionWrapper = async.timeout(getLedgerVersion, LEDGER_TIMEOUT)
const getLedgerLibraryVersionWrapper = async.timeout(getLedgerLibraryVersion, LEDGER_TIMEOUT)


function refreshLedger() {
// Clear Ledger State
clearLedgerDetails()

getLedgerStateWrapper(function (err, data) {
getLedgerState(function (err, data) {
if (err) {
// We timed out requesting data from ledger
$('#readingLedger').hide()
Expand All @@ -133,7 +126,7 @@ function refreshLedger() {
async.during(
// Truth function - check if current generation height < 256
function (callback) {
getLedgerStateWrapper(function (stateErr, stateData) { //eslint-disable-line
getLedgerState(function (stateErr, stateData) { //eslint-disable-line
if (stateErr) {
// Device unplugged?
$('#ledgerKeysGeneratingError').hide()
Expand Down Expand Up @@ -165,7 +158,7 @@ function refreshLedger() {
async.waterfall([
// Get the public key from the ledger so we can determine Q address
function (cb) {
getLedgerPubkeyWrapper(function (pubErr, pubData) { // eslint-disable-line
getLedgerPubkey(function (pubErr, pubData) { // eslint-disable-line
if (pubErr) {
// We timed out requesting data from ledger
$('#readingLedger').hide()
Expand All @@ -177,13 +170,13 @@ function refreshLedger() {
},
// Get the Ledger Device app version
function (cb) {
getLedgerVersionWrapper(function (data) {
getLedgerVersion(function (data) {
cb()
})
},
// Get the local QrlLedger JS library version
function (cb) {
getLedgerLibraryVersionWrapper(function(data) {
getLedgerLibraryVersion(function(data) {
cb()
})
},
Expand Down Expand Up @@ -212,7 +205,7 @@ function refreshLedger() {
}) // waitForQRLLIB
} // device state check
} // if(err) else
}) // getLedgerStateWrapper
}) // getLedgerState
}

function updateWalletType() {
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/tokens/tokenCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './tokenCreate.html'
import { BigNumber } from 'bignumber.js'
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/tokens/tokenCreateConfirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './tokenCreateConfirm.html'
import helpers from '@theqrl/explorer-helpers'
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/tokens/tokenCreateResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import JSONFormatter from 'json-formatter-js'
import './tokenCreateResult.html'
Expand Down
4 changes: 4 additions & 0 deletions imports/ui/pages/tools/keybase/keybaseConfirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ <h3 id="noRemainingSignatures" style="display: none;">There are no remaining sig
<h3>Timed out waiting for response from Ledger Nano. To save an OTS Key, you should reject the transaction on your Ledger and try again.</h3>
</div>

<div id="signOnLedgerError" class="ui inverted segment" style="display: none;">
<h3>Error communicating with Ledger Nano. To save an OTS Key, you should reject the transaction on your Ledger and try again.</h3>
</div>

<p id="ledgerHasConfirmed" style="display:none;">Transaction signed on Ledger <i class="ui check icon"></i></p>

<div class="ui positive confirm button" id="relayLedgerTxnButton" style="display:none;">Send transaction</div>
Expand Down
14 changes: 7 additions & 7 deletions imports/ui/pages/tools/keybase/keybaseConfirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import async from 'async'
import './keybaseConfirm.html'
Expand Down Expand Up @@ -41,10 +41,6 @@ function getLedgerRetrieveSignature(request, callback) {
}
}

// Wrap ledger calls in async.timeout
const getLedgerCreateMessageTxWrapper = async.timeout(getLedgerCreateMessageTx, LEDGER_TIMEOUT)
const getLedgerRetrieveSignatureWrapper = async.timeout(getLedgerRetrieveSignature, LEDGER_TIMEOUT)

function confirmKeybaseCreation() {
const tx = Session.get('messageCreationConfirmationResponse')

Expand Down Expand Up @@ -119,6 +115,7 @@ function confirmKeybaseCreation() {
$('#awaitingLedgerConfirmation').show()
$('#signOnLedgerRejected').hide()
$('#signOnLedgerTimeout').hide()
$('#signOnLedgerError').hide()
$('#ledgerHasConfirmed').hide()
$('#relayLedgerTxnButton').hide()
$('#noRemainingSignatures').hide()
Expand Down Expand Up @@ -162,8 +159,8 @@ function confirmKeybaseCreation() {
const fee = toBigendianUint64BytesUnsigned(tx.extended_transaction_unsigned.tx.fee, true)

// eslint-disable-next-line max-len
getLedgerCreateMessageTxWrapper(sourceAddr, fee, Buffer.from(tx.extended_transaction_unsigned.tx.message.message_hash), function (err, txn) {
getLedgerRetrieveSignatureWrapper(txn, function (err, sigResponse) {
getLedgerCreateMessageTx(sourceAddr, fee, Buffer.from(tx.extended_transaction_unsigned.tx.message.message_hash), function (err, txn) {
getLedgerRetrieveSignature(txn, function (err, sigResponse) {
// Hide the awaiting ledger confirmation spinner
$('#awaitingLedgerConfirmation').hide()

Expand All @@ -177,6 +174,9 @@ function confirmKeybaseCreation() {
// Check if the the request timed out waiting for response on ledger
} else if (sigResponse.return_code === 14) {
$('#signOnLedgerTimeout').show()
// Check for unknown errors
} else if ((sigResponse.return_code === 1) && (sigResponse.error_message == "Unknown error code")) {
$('#signOnLedgerError').show()
} else {
// Show confirmation message
$('#ledgerHasConfirmed').show()
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/tools/keybase/keybaseCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import './keybaseCreate.html'

Expand Down
2 changes: 1 addition & 1 deletion imports/ui/pages/tools/keybase/keybaseResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* global pkRawToB32Address, hexOrB32, rawToHexOrB32, anyAddressToRawAddress, stringToBytes, binaryToBytes, bytesToString, bytesToHex, hexToBytes, toBigendianUint64BytesUnsigned, numberToString, decimalToBinary */
/* global getMnemonicOfFirstAddress, getXMSSDetails, isWalletFileDeprecated, waitForQRLLIB, addressForAPI, binaryToQrlAddress, toUint8Vector, concatenateTypedArrays, getQrlProtoShasum */
/* global resetWalletStatus, passwordPolicyValid, countDecimals, supportedBrowser, wrapMeteorCall, getBalance, otsIndexUsed, ledgerHasNoTokenSupport, resetLocalStorageState, nodeReturnedValidResponse */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, LEDGER_TIMEOUT, */
/* global POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWORKS, findNetworkData, SHOR_PER_QUANTA, WALLET_VERSION, QRLPROTO_SHA256, */

import JSONFormatter from 'json-formatter-js'
import './keybaseResult.html'
Expand Down
4 changes: 4 additions & 0 deletions imports/ui/pages/tools/message/messageConfirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ <h3 id="noRemainingSignatures" style="display: none;">There are no remaining sig
<h3>Timed out waiting for response from Ledger Nano. To save an OTS Key, you should reject the transaction on your Ledger and try again.</h3>
</div>

<div id="signOnLedgerError" class="ui inverted segment" style="display: none;">
<h3>Error communicating with Ledger Nano. To save an OTS Key, you should reject the transaction on your Ledger and try again.</h3>
</div>

<p id="ledgerHasConfirmed" style="display:none;">Transaction signed on Ledger <i class="ui check icon"></i></p>

<div class="ui positive confirm button" id="relayLedgerTxnButton" style="display:none;">Send transaction</div>
Expand Down
Loading

0 comments on commit a0908b9

Please sign in to comment.