aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-18 21:49:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-18 21:49:13 +0800
commit90d1c3e2c98944728ac9d38f22c050a490318deb (patch)
tree3323d154b11f31384c7eba07b1e390fd9941507e /packages/subproviders/src
parent950406f1f9ad79a60ced5f6680c33fbc4237de3b (diff)
downloaddexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.gz
dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.zst
dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.zip
Introduce a variable for true
Diffstat (limited to 'packages/subproviders/src')
-rw-r--r--packages/subproviders/src/subproviders/ledger.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/subproviders/src/subproviders/ledger.ts b/packages/subproviders/src/subproviders/ledger.ts
index 793effaeb..f9922fdda 100644
--- a/packages/subproviders/src/subproviders/ledger.ts
+++ b/packages/subproviders/src/subproviders/ledger.ts
@@ -145,7 +145,10 @@ export class LedgerSubprovider extends Subprovider {
for (let i = 0; i < NUM_ADDRESSES_TO_FETCH; i++) {
const derivedHDNode = hdKey.derive(`m/${i + this._derivationPathIndex}`);
const derivedPublicKey = derivedHDNode.publicKey;
- const ethereumAddressUnprefixed = ethUtil.publicToAddress(derivedPublicKey, true).toString('hex');
+ const shouldSanitizePublicKey = true;
+ const ethereumAddressUnprefixed = ethUtil.publicToAddress(
+ derivedPublicKey, shouldSanitizePublicKey,
+ ).toString('hex');
const ethereumAddressPrefixed = ethUtil.addHexPrefix(ethereumAddressUnprefixed);
accounts.push(ethereumAddressPrefixed.toLowerCase());
}