@exodus/ethereum-api 5.0.6 → 5.0.8

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": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "Ethereum Api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@exodus/asset-lib": "^3.7.1",
18
18
  "@exodus/crypto": "^1.0.0-rc.0",
19
- "@exodus/ethereum-lib": "^2.26.7",
19
+ "@exodus/ethereum-lib": "^2.26.8",
20
20
  "@exodus/ethereumjs-util": "^7.1.0-exodus.6",
21
21
  "@exodus/fetch": "^1.2.1",
22
22
  "@exodus/simple-retry": "^0.0.6",
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@exodus/models": "^8.10.4"
38
38
  },
39
- "gitHead": "2930e8d91f3a63810a062b39e35318926ae304ac"
39
+ "gitHead": "02f5936dad6075821432b773a45b988d78540959"
40
40
  }
@@ -79,8 +79,8 @@ export default class ApiCoinNodesServer extends EventEmitter {
79
79
  return this.buildRequest({ method: 'eth_gasPrice' })
80
80
  }
81
81
 
82
- estimateGasRequest(data, tag = 'latest') {
83
- return this.buildRequest({ method: 'eth_estimateGas', params: [data, tag] })
82
+ estimateGasRequest(data) {
83
+ return this.buildRequest({ method: 'eth_estimateGas', params: [data] })
84
84
  }
85
85
 
86
86
  sendRawTransactionRequest(data) {
@@ -1,5 +1,6 @@
1
1
  import BN from 'bn.js'
2
2
  import { getServer } from '@exodus/ethereum-api'
3
+ import { CHAIN_DATA } from '@exodus/ethereum-lib'
3
4
  import { Tx } from '@exodus/models'
4
5
 
5
6
  import { getDeriveDataNeededForTick, getDeriveTransactionsToCheck } from './monitor-utils'
@@ -24,9 +25,11 @@ export class EthereumNoHistoryMonitor extends BaseMonitor {
24
25
  }
25
26
 
26
27
  setServer(config) {
27
- if (config.server === this.server?.uri) {
28
+ if (!config?.server) {
29
+ this.server.setURI(CHAIN_DATA[this.asset.name].serverUrl)
28
30
  return
29
31
  }
32
+ if (config.server === this.server.uri) return
30
33
  this.server.setURI(config.server)
31
34
  }
32
35