@exodus/ethereum-lib 1.1.4 → 1.1.5

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": "1.1.4",
3
+ "version": "1.1.5",
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": "6e317e67acad8dff592860f0bd6730fc2c492cbe"
24
+ "gitHead": "f6642c1e3ef9004b27923176c5654103efad1181"
25
25
  }
@@ -33,7 +33,10 @@ export default (
33
33
  if (usedGasPrice.gte(gasPrice)) {
34
34
  return BumpType.NONE
35
35
  }
36
- const fee = getFee(assetName, { gasLimit: tx.data.gasLimit })
36
+ const fee = getFee(
37
+ { asset: assetName, walletAccount: activeWalletAccount },
38
+ { gasLimit: tx.data.gasLimit }
39
+ )
37
40
  .mul(12) // new gas price should be at least 20% higher
38
41
  .div(10)
39
42
  if (walletAccountBalances[assetName].lt(fee)) return BumpType.NONE