@ocap/state 1.18.83 → 1.18.85

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 +1 -2
  2. package/package.json +8 -8
package/lib/states/tx.js CHANGED
@@ -164,10 +164,9 @@ const getCreateAssetReceipts = (tx) => {
164
164
  };
165
165
 
166
166
  const getMintAssetReceipts = (tx, ctx) => {
167
- const { ownerState } = ctx;
168
167
  const { assets = [], address, owner } = tx.itxJson;
169
168
  const ownerReceipt = {
170
- address: ownerState ? ownerState.address : owner,
169
+ address: ctx.ownerAddress || owner,
171
170
  changes: [{ target: address, action: 'mint', value: '1' }],
172
171
  };
173
172
  assets.map((x) => ownerReceipt.changes.push({ target: x, action: 'consume', value: '-1' }));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.83",
6
+ "version": "1.18.85",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -16,12 +16,12 @@
16
16
  "coverage": "npm run test -- --coverage"
17
17
  },
18
18
  "dependencies": {
19
- "@arcblock/did": "1.18.83",
20
- "@arcblock/validator": "1.18.83",
21
- "@ocap/contract": "1.18.83",
22
- "@ocap/mcrypto": "1.18.83",
23
- "@ocap/message": "1.18.83",
24
- "@ocap/util": "1.18.83",
19
+ "@arcblock/did": "1.18.85",
20
+ "@arcblock/validator": "1.18.85",
21
+ "@ocap/contract": "1.18.85",
22
+ "@ocap/mcrypto": "1.18.85",
23
+ "@ocap/message": "1.18.85",
24
+ "@ocap/util": "1.18.85",
25
25
  "bloom-filters": "^1.3.9",
26
26
  "lodash": "^4.17.21"
27
27
  },
@@ -31,5 +31,5 @@
31
31
  "keywords": [],
32
32
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
33
33
  "license": "MIT",
34
- "gitHead": "4ff2fda0bfeca2c5c85a141fb9d228d91914bdaf"
34
+ "gitHead": "c17928905b9dabebacd92686c92ee303781cd603"
35
35
  }