@ocap/resolver 1.18.162 → 1.18.164

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 +3 -5
  2. package/package.json +12 -12
package/lib/index.js CHANGED
@@ -1001,11 +1001,9 @@ module.exports = class OCAPResolver {
1001
1001
  }
1002
1002
 
1003
1003
  if (typeUrl === 'fg:t:account_migrate') {
1004
- const fromState = await this.getAccountState({
1005
- address: tx.tx.from,
1006
- traceMigration: false,
1007
- expandContext: false,
1008
- });
1004
+ const fromState = await this.runAsLambda((txn) =>
1005
+ this.statedb.account.get(tx.tx.from, { txn, traceMigration: false })
1006
+ );
1009
1007
  if (fromState) {
1010
1008
  tx.receipts = getTxReceipts(tx, { config: this.config, fromState });
1011
1009
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.162",
6
+ "version": "1.18.164",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -22,18 +22,18 @@
22
22
  "jest": "^29.7.0"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.18.162",
26
- "@arcblock/did-util": "1.18.162",
27
- "@arcblock/validator": "1.18.162",
28
- "@ocap/config": "1.18.162",
29
- "@ocap/indexdb": "1.18.162",
30
- "@ocap/mcrypto": "1.18.162",
31
- "@ocap/message": "1.18.162",
32
- "@ocap/state": "1.18.162",
33
- "@ocap/tx-protocols": "1.18.162",
34
- "@ocap/util": "1.18.162",
25
+ "@arcblock/did": "1.18.164",
26
+ "@arcblock/did-util": "1.18.164",
27
+ "@arcblock/validator": "1.18.164",
28
+ "@ocap/config": "1.18.164",
29
+ "@ocap/indexdb": "1.18.164",
30
+ "@ocap/mcrypto": "1.18.164",
31
+ "@ocap/message": "1.18.164",
32
+ "@ocap/state": "1.18.164",
33
+ "@ocap/tx-protocols": "1.18.164",
34
+ "@ocap/util": "1.18.164",
35
35
  "debug": "^4.3.6",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "54c0d27c13d94fd758335e65648326a8d04dd30c"
38
+ "gitHead": "f517d0620f7fb4acd26716ab76f68829587b6483"
39
39
  }