@ocap/state 1.13.79 → 1.13.83

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 +3 -3
  2. package/package.json +8 -8
package/lib/states/tx.js CHANGED
@@ -252,11 +252,11 @@ const getClaimStakeReceipts = (tx, ctx) => {
252
252
  };
253
253
 
254
254
  const getCreateTokenReceipts = (tx) => {
255
- const { totalSupply, address } = tx.itxJson;
256
- const balance = new BN(totalSupply).toString();
255
+ const { initialSupply, address } = tx.itxJson;
256
+ const balance = new BN(initialSupply).toString();
257
257
 
258
258
  const issuerReceipt = {
259
- address: tx.from,
259
+ address: tx.delegator || tx.from,
260
260
  changes: [{ target: address, action: 'mint', value: balance }],
261
261
  };
262
262
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.13.79",
6
+ "version": "1.13.83",
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.13.79",
20
- "@ocap/contract": "1.13.79",
21
- "@ocap/mcrypto": "1.13.79",
22
- "@ocap/message": "1.13.79",
23
- "@ocap/util": "1.13.79",
24
- "@ocap/validator": "1.13.79",
19
+ "@arcblock/did": "1.13.83",
20
+ "@ocap/contract": "1.13.83",
21
+ "@ocap/mcrypto": "1.13.83",
22
+ "@ocap/message": "1.13.83",
23
+ "@ocap/util": "1.13.83",
24
+ "@ocap/validator": "1.13.83",
25
25
  "bloom-filters": "^1.3.1",
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": "e349a68b05ae8c6975517c8b43c66f9120a9b99f"
34
+ "gitHead": "b92092e3f7347720e34f061844fdf6b49cbfca88"
35
35
  }