From 16164f1c0e18f0803e6807008dc03af03150057e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Tue, 19 Oct 2021 21:34:43 +0100 Subject: [PATCH] fix: prefixe path usage --- bin/lamassu-eth-recovery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lamassu-eth-recovery b/bin/lamassu-eth-recovery index 052de044..e8e2991a 100644 --- a/bin/lamassu-eth-recovery +++ b/bin/lamassu-eth-recovery @@ -30,7 +30,7 @@ function run (address) { Promise.all([fetchMnemonic(), searchForHdIndex(address)]) .then(([mnemonic, hdIndex]) => { try { - const prefix = !_.isNil(hdIndex) ? defaultPrefixPath : paymentPrefixPath + const prefix = !_.isNil(hdIndex) ? paymentPrefixPath : defaultPrefixPath console.log(`Private key: `, defaultHdNode(mnemonic, prefix).deriveChild(hdIndex).getWallet().getPrivateKeyString()) process.exit(0) } catch (err) {