@exodus/ethereum-api 2.6.10 → 2.6.12

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-api",
3
- "version": "2.6.10",
3
+ "version": "2.6.12",
4
4
  "description": "Ethereum Api",
5
5
  "main": "src/index.js",
6
6
  "author": "Exodus Movement, Inc.",
@@ -10,7 +10,7 @@
10
10
  "access": "restricted"
11
11
  },
12
12
  "dependencies": {
13
- "@exodus/ethereum-lib": "^2.10.5",
13
+ "@exodus/ethereum-lib": "^2.10.6",
14
14
  "@exodus/ethereumjs-util": "^7.1.0-exodus.6",
15
15
  "@exodus/simple-retry": "^0.0.6",
16
16
  "fetchival": "0.3.3",
@@ -21,5 +21,5 @@
21
21
  "url-join": "4.0.0",
22
22
  "ws": "6.1.0"
23
23
  },
24
- "gitHead": "7b3935c60ae39ce470c129efa86da4e9a06d676b"
24
+ "gitHead": "f1f05868a45d2d120bf5b95e156c48df8d2185cb"
25
25
  }
@@ -70,7 +70,7 @@ export async function fetchGasLimit({
70
70
 
71
71
  if (bip70.bitpay.gasPrice) {
72
72
  const bitPayGasPrice = ethUtil.bufferToHex(currency2buffer(bip70.bitpay.gasPrice))
73
- if (new ethUtil.BN(bitPayGasPrice).gt(new ethUtil.BN(gasPrice))) {
73
+ if (new ethUtil.BN(bitPayGasPrice.slice(2), 16).gt(new ethUtil.BN(gasPrice.slice(2), 16))) {
74
74
  gasPrice = bitPayGasPrice
75
75
  }
76
76
  }