From faa9a017a4c9c90960d285ba1c9fb7fc7262e30d Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 18 Aug 2022 08:49:46 +0300 Subject: [PATCH] refactor: rename command --- .../watchonly/static/components/serial-signer/serial-signer.js | 2 +- lnbits/extensions/watchonly/static/js/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 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 67049f8b4..0e705ae83 100644 --- a/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.js +++ b/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.js @@ -526,7 +526,7 @@ async function serialSigner(path) { const encryptedIvHex = nobleSecp256k1.utils.bytesToHex(iv) try { await this.writer.write( - COMMAND_CHECK_SECURE_CONNECTION + + COMMAND_CHECK_PAIRING + ' ' + encryptedHex + encryptedIvHex + diff --git a/lnbits/extensions/watchonly/static/js/utils.js b/lnbits/extensions/watchonly/static/js/utils.js index 152e838e8..e39ecec3c 100644 --- a/lnbits/extensions/watchonly/static/js/utils.js +++ b/lnbits/extensions/watchonly/static/js/utils.js @@ -14,7 +14,7 @@ const COMMAND_CANCEL = '/cancel' const COMMAND_XPUB = '/xpub' const COMMAND_DH_EXCHANGE = '/dh-exchange' const COMMAND_LOG = '/log' -const COMMAND_CHECK_SECURE_CONNECTION = '/check-connection' +const COMMAND_CHECK_PAIRING = '/check-pairing' const DEFAULT_RECEIVE_GAP_LIMIT = 20