@exodus/ethereum-lib 2.0.0 → 2.0.1

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": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "author": "Exodus Movement, Inc.",
@@ -21,5 +21,5 @@
21
21
  "peerDependencies": {
22
22
  "@exodus/assets": "8.0.x"
23
23
  },
24
- "gitHead": "cc2ade686dff7693c028ca9d6796ada2a0eed6f1"
24
+ "gitHead": "7708ea7f4a1a441c910143dece98fe712048670f"
25
25
  }
@@ -19,6 +19,7 @@ export default (
19
19
  getWalletAccountBalancesSelector,
20
20
  activeWalletAccountSelector,
21
21
  getPersonalNoteByTxIdSelector,
22
+ getIsRbfEnabledSelector,
22
23
  assets
23
24
  ) =>
24
25
  createSelector(
@@ -27,11 +28,18 @@ export default (
27
28
  getWalletAccountBalancesSelector,
28
29
  activeWalletAccountSelector,
29
30
  getPersonalNoteByTxIdSelector,
30
- (getFeeData, getFee, getWalletAccountBalances, activeWalletAccount, getPersonalNoteByTxId) => (
31
- tx
32
- ) => {
31
+ getIsRbfEnabledSelector,
32
+ (
33
+ getFeeData,
34
+ getFee,
35
+ getWalletAccountBalances,
36
+ activeWalletAccount,
37
+ getPersonalNoteByTxId,
38
+ getIsRbfEnabled
39
+ ) => (tx) => {
33
40
  const assetName = tx.coinName
34
41
  const asset = assets[assetName]
42
+ if (!getIsRbfEnabled(assetName)) return BumpType.NONE
35
43
  if (!['ETHEREUM_ERC20', 'ETHEREUM_LIKE'].includes(asset.assetType)) return BumpType.NONE
36
44
  if (!tx.pending || !tx.sent || tx.exchange || !tx.data?.gasLimit) return BumpType.NONE
37
45
  if (getPersonalNoteByTxId(tx.txId)?.dapp) return BumpType.NONE