@ocap/indexdb-elasticsearch 1.13.73 → 1.13.74

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.
Files changed (2) hide show
  1. package/lib/db.js +2 -1
  2. package/package.json +5 -4
package/lib/db.js CHANGED
@@ -5,6 +5,7 @@ const { formatPagination } = require('@ocap/indexdb/lib/util');
5
5
  const { parseDateTime } = require('@ocap/indexdb/lib/util');
6
6
  const { formatTxAfterRead } = require('@ocap/indexdb/lib/util');
7
7
  const { DEFAULT_TOKEN_DECIMAL } = require('@ocap/util/lib/constant');
8
+ const { toChecksumAddress } = require('@arcblock/did/lib/type');
8
9
 
9
10
  const debug = require('debug')(require('../package.json').name);
10
11
 
@@ -455,7 +456,7 @@ class ESIndexDB extends BaseIndexDB {
455
456
  conditions.push({
456
457
  nested: {
457
458
  path: 'foreignToken',
458
- query: { bool: { must: { term: { 'foreignToken.contractAddress': foreignTokenAddr } } } },
459
+ query: { bool: { must: { term: { 'foreignToken.contractAddress': toChecksumAddress(foreignTokenAddr) } } } },
459
460
  },
460
461
  });
461
462
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/indexdb-elasticsearch",
3
3
  "description": "OCAP indexdb adapter that uses elasticsearch as backend",
4
- "version": "1.13.73",
4
+ "version": "1.13.74",
5
5
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ArcBlock/asset-chain/issues",
@@ -38,11 +38,12 @@
38
38
  "test": "jest --forceExit --detectOpenHandles",
39
39
  "coverage": "npm run test -- --coverage"
40
40
  },
41
- "gitHead": "ffce10eaa7c72fe6d6fdc534f7e15cbdb3e6a917",
41
+ "gitHead": "24531e4142d2dc888d6f6091d82d2f7e5abe22ae",
42
42
  "dependencies": {
43
+ "@arcblock/did": "1.13.74",
43
44
  "@elastic/elasticsearch": "7.13.0",
44
- "@ocap/indexdb": "1.13.73",
45
- "@ocap/util": "1.13.73",
45
+ "@ocap/indexdb": "1.13.74",
46
+ "@ocap/util": "1.13.74",
46
47
  "axios": "^0.21.4",
47
48
  "bn.js": "^5.2.0",
48
49
  "debug": "^4.3.2",