From 01d2db5a1b8a1343a2f17f960d0e41f85c4250eb Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 15 Aug 2022 15:43:35 +0300 Subject: [PATCH] fix: bad command for restore --- .../static/components/serial-signer/serial-signer.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.js b/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.js index 940d4ad6..867345b2 100644 --- a/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.js +++ b/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.js @@ -291,7 +291,7 @@ async function serialSigner(path) { hwwShowRestoreDialog: async function () { try { this.hww.showRestoreDialog = true - await this.sendCommandSecure(COMMAND_WIPE) + await this.sendCommandSecure(COMMAND_RESTORE) } catch (error) { this.$q.notify({ type: 'warning', @@ -628,15 +628,6 @@ async function serialSigner(path) { handleShowSeedResponse: function (res = '') { const args = res.trim().split(' ') console.log('### handleShowSeedResponse: ', res) - // if (args.length < 2 || args[0].trim() !== '1') { - // this.$q.notify({ - // type: 'warning', - // message: 'Failed to show seed!', - // caption: `${res}`, - // timeout: 10000 - // }) - // return - // } }, hwwRestore: async function () { try {