@exodus/ethereum-lib 4.6.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -60,5 +60,5 @@
60
60
  "@exodus/bnbmainnet-meta": "^1.0.0",
61
61
  "@exodus/elliptic": "^6.5.4-precomputed"
62
62
  },
63
- "gitHead": "a9f627045d3323b35362d3513dd0ec325ccbfd7c"
63
+ "gitHead": "fc95d105fa19691ee2549d2e4ac07ddf20a2b8af"
64
64
  }
@@ -1,8 +1,6 @@
1
1
  import assert from 'minimalistic-assert'
2
2
  import { createGetKeyIdentifier, unhardenDerivationIndex } from '@exodus/key-utils'
3
3
 
4
- const HARDWARE_WALLETS = new Set(['ledger', 'trezor'])
5
-
6
4
  const createEthereumGetKeyIdentifier =
7
5
  ({ bip44, assetName, keyType = 'secp256k1', allowMetaMaskCompat = false } = {}) =>
8
6
  (partialParams = {}) => {
@@ -15,7 +13,6 @@ const createEthereumGetKeyIdentifier =
15
13
  }
16
14
 
17
15
  const { accountIndex, addressIndex, compatibilityMode } = params
18
- const isHardwareWallet = HARDWARE_WALLETS.has(compatibilityMode)
19
16
  const unhardenedBip44 = unhardenDerivationIndex(bip44)
20
17
  const isMetaMask = allowMetaMaskCompat && compatibilityMode === 'metamask'
21
18
 
@@ -35,7 +32,7 @@ const createEthereumGetKeyIdentifier =
35
32
  keyType,
36
33
  validationRules: {
37
34
  allowMultipleAddresses: true,
38
- allowXPUB: isHardwareWallet,
35
+ allowXPUB: true,
39
36
  },
40
37
  })(params)
41
38
  }