@cheqd/did-provider-cheqd 3.6.12-develop.1 → 3.6.12-develop.2

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.
@@ -2333,7 +2333,7 @@ class Cheqd {
2333
2333
  return { revoked: false };
2334
2334
  // early exit, if credential is already revoked
2335
2335
  if (statusList.getStatus(Number(credential.credentialStatus.statusListIndex)))
2336
- return { revoked: false };
2336
+ return { revoked: true };
2337
2337
  // update revocation status
2338
2338
  statusList.setStatus(Number(credential.credentialStatus.statusListIndex), true);
2339
2339
  // return revocation status
@@ -2937,7 +2937,7 @@ class Cheqd {
2937
2937
  return { suspended: false };
2938
2938
  // early exit, if credential is already suspended
2939
2939
  if (statusList.getStatus(Number(credential.credentialStatus.statusListIndex)))
2940
- return { suspended: false };
2940
+ return { suspended: true };
2941
2941
  // update suspension status
2942
2942
  statusList.setStatus(Number(credential.credentialStatus.statusListIndex), true);
2943
2943
  // return suspension status