@exodus/ethereum-api 6.2.12 → 6.2.14
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": "6.2.
|
|
3
|
+
"version": "6.2.14",
|
|
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": "^3.3.
|
|
19
|
+
"@exodus/ethereum-lib": "^3.3.7",
|
|
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": "
|
|
39
|
+
"gitHead": "d335c6220d835f757eb4a0e7d44a36f58aa2a64a"
|
|
40
40
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { bufferToHex } from '@exodus/ethereumjs-util'
|
|
2
2
|
import SolidityContract from '@exodus/solidity-contract'
|
|
3
3
|
import EventEmitter from 'events'
|
|
4
|
+
import { isEmpty } from 'lodash'
|
|
4
5
|
|
|
5
6
|
export default class ApiCoinNodesServer extends EventEmitter {
|
|
6
7
|
constructor({ uri }) {
|
|
@@ -27,6 +28,7 @@ export default class ApiCoinNodesServer extends EventEmitter {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
async sendBatchRequest(batch) {
|
|
31
|
+
if (isEmpty(batch)) return batch
|
|
30
32
|
const responses = await this.request(batch)
|
|
31
33
|
const isValid = responses.every((response) => {
|
|
32
34
|
return !isNaN(response?.id) && response?.result
|