diff --git a/scripts/wallet.js b/scripts/wallet.js index 6766f7dca..5994a19f6 100644 --- a/scripts/wallet.js +++ b/scripts/wallet.js @@ -236,12 +236,11 @@ export class HardwareWalletMasterKey extends MasterKey { return false; } get keyToExport() { - return this.getxpub( - getDerivationPath(true) - .split('/') - .filter((v) => !v.includes("'")) - .join('/') - ); + const derivationPath = getDerivationPath(masterKey.isHardwareWallet) + .split('/') + .slice(0, 4) + .join('/'); + return this.getxpub(derivationPath); } }