Skip to content

Commit

Permalink
fix: Revocation Index 0 anoncreds-rs support (#2126)
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn authored Dec 5, 2024
1 parent 49abaf6 commit 6989c65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class AnonCredsRsIssuerService implements AnonCredsIssuerService {
}

let revocationConfiguration: CredentialRevocationConfig | undefined
if (revocationRegistryDefinitionId && revocationStatusList && revocationRegistryIndex) {
if (revocationRegistryDefinitionId && revocationStatusList && revocationRegistryIndex !== undefined) {
const revocationRegistryDefinitionRecord = await agentContext.dependencyManager
.resolve(AnonCredsRevocationRegistryDefinitionRepository)
.getByRevocationRegistryDefinitionId(agentContext, revocationRegistryDefinitionId)
Expand Down

0 comments on commit 6989c65

Please sign in to comment.