zkjson 0.1.8 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -271,7 +271,7 @@ contract ZKQuery {
271
271
  }
272
272
 
273
273
  function _qFloat (uint[] memory value) internal pure returns (uint[3] memory) {
274
- require(value[0] == 2 && value[2] == 1, "not float");
274
+ require(value[0] == 2 && value[2] != 0, "not float");
275
275
  uint[3] memory float;
276
276
  float[0] = value[1];
277
277
  float[1] = value[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkjson",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Zero Knowledge Provable JSON",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -9,6 +9,7 @@
9
9
  "blake2b": "^2.1.3",
10
10
  "ethers": "^5.5.1",
11
11
  "ffjavascript": "^0.2.45",
12
- "ramda": "^0.29.1"
12
+ "ramda": "^0.29.1",
13
+ "snarkjs": "^0.7.3"
13
14
  }
14
15
  }