fix: prefixe path usage
This commit is contained in:
parent
e224a75290
commit
16164f1c0e
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue