@ocap/state 1.18.166 → 1.19.0

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/states/tx.js +2 -1
  2. package/package.json +9 -9
package/lib/states/tx.js CHANGED
@@ -708,7 +708,7 @@ const getTxReceipts = ({ tx, code }, ctx = {}) => {
708
708
  };
709
709
 
710
710
  const create = (context, code = 'OK', verifyReceipts = true) => {
711
- const { txHash, txTime, tx, totalGas, itxExtras = {} } = context;
711
+ const { txHash, txTime, tx, totalGas, itxExtras = {}, extra = {} } = context;
712
712
  const itx = decodeAny(tx.itx).value; // we should decode here because `context.itx` maybe changed
713
713
  const typeUrl = fromTypeUrl(tx.itx.typeUrl);
714
714
  const typeName = tx.itx.typeUrl.split(':').pop();
@@ -745,6 +745,7 @@ const create = (context, code = 'OK', verifyReceipts = true) => {
745
745
  ...itxExtras,
746
746
  data: itx.data || null,
747
747
  },
748
+ extra: extra.txExtra || null,
748
749
  },
749
750
  };
750
751
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.166",
6
+ "version": "1.19.0",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,13 +18,13 @@
18
18
  "coverage": "start-server-and-test start http://127.0.0.1:4001 test:ci"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did": "1.18.166",
22
- "@arcblock/validator": "1.18.166",
23
- "@ocap/contract": "1.18.166",
24
- "@ocap/mcrypto": "1.18.166",
25
- "@ocap/message": "1.18.166",
26
- "@ocap/util": "1.18.166",
27
- "@ocap/wallet": "1.18.166",
21
+ "@arcblock/did": "1.19.0",
22
+ "@arcblock/validator": "1.19.0",
23
+ "@ocap/contract": "1.19.0",
24
+ "@ocap/mcrypto": "1.19.0",
25
+ "@ocap/message": "1.19.0",
26
+ "@ocap/util": "1.19.0",
27
+ "@ocap/wallet": "1.19.0",
28
28
  "bloom-filters": "^1.3.9",
29
29
  "lodash": "^4.17.21"
30
30
  },
@@ -35,5 +35,5 @@
35
35
  "keywords": [],
36
36
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
37
37
  "license": "MIT",
38
- "gitHead": "58c8356b3b8c238728560e4c3fef6ed1704d3ac4"
38
+ "gitHead": "1b6fac03988fb18507c8ef4c21de282762005f87"
39
39
  }