zkjson 0.1.8 → 0.1.10
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.
- package/contracts/ZKQuery.sol +1 -1
- package/package.json +3 -2
package/contracts/ZKQuery.sol
CHANGED
@@ -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]
|
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.
|
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
|
}
|