In one project, I was trying to find all the elements smaller than the threshold value from a given array and push it into another smaller array. To compare the values, I used the following:
if(TFHE.decrypt(TFHE.eq(TFHE.min(encryptedThresholdValue, sumOfDifferenceSet[i]), sumOfDifferenceSet[i])))
{
smallerArray.push(sumOfDifferenceSet[i]);
}
It seemed to work fine, even like couple of days ago, but now it doesn’t seem to work. It shows this error everytime:
[block:252704 txIndex:0]from: 0xd7B...52505to: EncryptedHospitals.compareWithThresholdValue(uint32) 0x10a...42f1Cvalue: 0 weidata: 0x2d4...0001elogs: 0hash: 0x14d...15afd
Please tell me what’s wrong, and how do I fix it.