zkjson 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/contracts/ZKQuery.sol +1 -1
- package/package.json +1 -1
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];
|