From eecf51a23adedca4818bd020954f98102b99b801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Carneiro?= Date: Mon, 23 Dec 2024 09:16:29 -0500 Subject: [PATCH] chore: linter changes --- scripts/generate_words.js | 14 +++++++------- scripts/get_xpub_from_seed.js | 24 ++++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/scripts/generate_words.js b/scripts/generate_words.js index 8bf4a63e..05bb71a4 100644 --- a/scripts/generate_words.js +++ b/scripts/generate_words.js @@ -8,15 +8,15 @@ import { walletUtils } from '@hathor/wallet-lib'; function main() { - const words = walletUtils.generateWalletWords(); + const words = walletUtils.generateWalletWords(); - console.log(words); + console.log(words); } try { - main() - process.exit(0); -} catch(err) { - console.error(err); - process.exit(1); + main(); + process.exit(0); +} catch (err) { + console.error(err); + process.exit(1); } diff --git a/scripts/get_xpub_from_seed.js b/scripts/get_xpub_from_seed.js index e677f779..8119fba7 100644 --- a/scripts/get_xpub_from_seed.js +++ b/scripts/get_xpub_from_seed.js @@ -8,7 +8,7 @@ import hathorLib from '@hathor/wallet-lib'; function main() { - /** + /** * argv contains the cli arguments that made this script run, including the interpreter * and script filename so to get the actual seed passed via cli we need to remove the * other arguments. @@ -16,19 +16,19 @@ function main() { * We need to remove the first 2 and join the other arguments into a single string * separated by spaces */ - const seed = process.argv.slice(2).join(' '); - const hdprivkeyRoot = hathorLib.walletUtils.getXPrivKeyFromSeed(seed); - // `accountDerivationIndex` will make the util method derive to the change path - const hdprivkey = hathorLib.walletUtils.deriveXpriv(hdprivkeyRoot, '0\'/0'); + const seed = process.argv.slice(2).join(' '); + const hdprivkeyRoot = hathorLib.walletUtils.getXPrivKeyFromSeed(seed); + // `accountDerivationIndex` will make the util method derive to the change path + const hdprivkey = hathorLib.walletUtils.deriveXpriv(hdprivkeyRoot, '0\'/0'); - // Print the xpubkey - console.log(hdprivkey.xpubkey); + // Print the xpubkey + console.log(hdprivkey.xpubkey); } try { - main() - process.exit(0); -} catch(err) { - console.error(err); - process.exit(1); + main(); + process.exit(0); +} catch (err) { + console.error(err); + process.exit(1); }