diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-18 21:49:13 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-18 21:49:13 +0800 |
commit | 90d1c3e2c98944728ac9d38f22c050a490318deb (patch) | |
tree | 3323d154b11f31384c7eba07b1e390fd9941507e /packages/subproviders | |
parent | 950406f1f9ad79a60ced5f6680c33fbc4237de3b (diff) | |
download | dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.gz dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.bz2 dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.lz dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.xz dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.tar.zst dexon-0x-contracts-90d1c3e2c98944728ac9d38f22c050a490318deb.zip |
Introduce a variable for true
Diffstat (limited to 'packages/subproviders')
-rw-r--r-- | packages/subproviders/src/subproviders/ledger.ts | 5 |
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()); } |