@ocap/asset 1.14.6 → 1.14.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/index.js +4 -0
  2. package/package.json +9 -9
package/lib/index.js CHANGED
@@ -193,6 +193,10 @@ const mintFromFactory = ({ factory, inputs, owner, issuer }) => {
193
193
  * @param {object} params.issuer factory issuer wallet and name
194
194
  */
195
195
  const preMintFromFactory = ({ factory, inputs, owner, issuer }) => {
196
+ if (Object.keys(inputs).some((x) => typeof inputs[x] !== 'string')) {
197
+ throw new Error('Failed to mint asset from factory: input values must be strings');
198
+ }
199
+
196
200
  let asset = null;
197
201
  const { output, address: factoryAddress, data } = factory;
198
202
  const { wallet, name } = issuer;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/asset",
3
3
  "description": "Utility to work with asset and factory on ArcBlock blockchain",
4
- "version": "1.14.6",
4
+ "version": "1.14.7",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -15,13 +15,13 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@arcblock/did": "1.14.6",
19
- "@arcblock/did-util": "1.14.6",
20
- "@arcblock/vc": "1.14.6",
21
- "@ocap/contract": "1.14.6",
22
- "@ocap/mcrypto": "1.14.6",
23
- "@ocap/util": "1.14.6",
24
- "@ocap/wallet": "1.14.6",
18
+ "@arcblock/did": "1.14.7",
19
+ "@arcblock/did-util": "1.14.7",
20
+ "@arcblock/vc": "1.14.7",
21
+ "@ocap/contract": "1.14.7",
22
+ "@ocap/mcrypto": "1.14.7",
23
+ "@ocap/util": "1.14.7",
24
+ "@ocap/wallet": "1.14.7",
25
25
  "debug": "^4.3.2",
26
26
  "empty-value": "^1.0.1",
27
27
  "flat": "^5.0.2",
@@ -73,5 +73,5 @@
73
73
  "test": "jest --forceExit --detectOpenHandles",
74
74
  "coverage": "yarn test -- --coverage"
75
75
  },
76
- "gitHead": "dd379a7d1bd2a46be27a29e6f0c65fa161ec0b0c"
76
+ "gitHead": "54d1d67b4c1902652083f4143a089da40489cf8d"
77
77
  }