@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.
@@ -2327,7 +2327,7 @@ export class Cheqd {
2327
2327
  return { revoked: false };
2328
2328
  // early exit, if credential is already revoked
2329
2329
  if (statusList.getStatus(Number(credential.credentialStatus.statusListIndex)))
2330
- return { revoked: false };
2330
+ return { revoked: true };
2331
2331
  // update revocation status
2332
2332
  statusList.setStatus(Number(credential.credentialStatus.statusListIndex), true);
2333
2333
  // return revocation status
@@ -2931,7 +2931,7 @@ export class Cheqd {
2931
2931
  return { suspended: false };
2932
2932
  // early exit, if credential is already suspended
2933
2933
  if (statusList.getStatus(Number(credential.credentialStatus.statusListIndex)))
2934
- return { suspended: false };
2934
+ return { suspended: true };
2935
2935
  // update suspension status
2936
2936
  statusList.setStatus(Number(credential.credentialStatus.statusListIndex), true);
2937
2937
  // return suspension status