diff --git a/web/cashtab/src/hooks/useWallet.js b/web/cashtab/src/hooks/useWallet.js --- a/web/cashtab/src/hooks/useWallet.js +++ b/web/cashtab/src/hooks/useWallet.js @@ -101,18 +101,12 @@ }; const deriveAccount = async (BCH, { masterHDNode, path }) => { - const node = BCH.HDNode.derivePath(masterHDNode, path); + const node = masterHDNode.derivePath(path); const publicKey = BCH.HDNode.toPublicKey(node).toString('hex'); const cashAddress = BCH.HDNode.toCashAddress(node); const hash160 = BCH.Address.toHash160(cashAddress); const slpAddress = BCH.SLP.Address.toSLPAddress(cashAddress); - // temporary comparison between BCH-JS' derivePath() and the local impl - const localNode = masterHDNode.derivePath(path); - if (node.toString() === localNode.toString()) { - console.log(path + ': BCH-JS node output matches localNode'); - } - return { publicKey, hash160,