@ocap/resolver 1.13.11 → 1.13.15

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/index.js +1 -1
  2. package/package.json +10 -10
package/lib/index.js CHANGED
@@ -298,7 +298,7 @@ module.exports = class OCAPResolver {
298
298
  onRead: async (state) => {
299
299
  if (state) {
300
300
  const tokens = await this.formatTokenMap({ [state.tokenAddress]: '0' });
301
- state.tokenInfo = tokens[state.tokenAddress];
301
+ state.tokenInfo = tokens.find((x) => x.address === state.tokenAddress);
302
302
  }
303
303
 
304
304
  return state;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.13.11",
6
+ "version": "1.13.15",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -22,16 +22,16 @@
22
22
  "jest": "^26.6.3"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.13.11",
26
- "@ocap/config": "1.13.11",
27
- "@ocap/indexdb": "1.13.11",
28
- "@ocap/mcrypto": "1.13.11",
29
- "@ocap/message": "1.13.11",
30
- "@ocap/state": "1.13.11",
31
- "@ocap/tx-protocols": "1.13.11",
32
- "@ocap/util": "1.13.11",
25
+ "@arcblock/did": "1.13.15",
26
+ "@ocap/config": "1.13.15",
27
+ "@ocap/indexdb": "1.13.15",
28
+ "@ocap/mcrypto": "1.13.15",
29
+ "@ocap/message": "1.13.15",
30
+ "@ocap/state": "1.13.15",
31
+ "@ocap/tx-protocols": "1.13.15",
32
+ "@ocap/util": "1.13.15",
33
33
  "debug": "^4.3.2",
34
34
  "lodash": "^4.17.21"
35
35
  },
36
- "gitHead": "42184b4b915a5f390c58e6239f61d621d9128917"
36
+ "gitHead": "59cc74fe26cd934c73392b0a8072a1945cbc425a"
37
37
  }