diff --git a/packages/anoncreds/src/formats/AnonCredsCredentialFormatService.ts b/packages/anoncreds/src/formats/AnonCredsCredentialFormatService.ts index e58f156279..181dccf477 100644 --- a/packages/anoncreds/src/formats/AnonCredsCredentialFormatService.ts +++ b/packages/anoncreds/src/formats/AnonCredsCredentialFormatService.ts @@ -613,7 +613,7 @@ export class AnonCredsCredentialFormatService implements CredentialFormatService ).credentialDefinition.value if (credentialDefinition.revocation) { - if (!revocationRegistryDefinitionId || !revocationRegistryIndex) { + if (!revocationRegistryDefinitionId || revocationRegistryIndex === undefined) { throw new CredoError( 'AnonCreds revocable credentials require revocationRegistryDefinitionId and revocationRegistryIndex' ) diff --git a/packages/anoncreds/src/formats/AnonCredsProofFormatService.ts b/packages/anoncreds/src/formats/AnonCredsProofFormatService.ts index 4a324e26c5..25bd774c60 100644 --- a/packages/anoncreds/src/formats/AnonCredsProofFormatService.ts +++ b/packages/anoncreds/src/formats/AnonCredsProofFormatService.ts @@ -519,7 +519,7 @@ export class AnonCredsProofFormatService implements ProofFormatService