Skip to content

Commit

Permalink
rev index fix
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn authored and gmulhearn-anonyome committed Dec 5, 2024
1 parent 9d934af commit 31993ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/anoncreds/src/anoncreds-rs/AnonCredsRsIssuerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export class AnonCredsRsIssuerService implements AnonCredsIssuerService {

let createReturnObj:
| {
credentialDefinition: CredentialDefinition
credentialDefinitionPrivate: CredentialDefinitionPrivate
keyCorrectnessProof: KeyCorrectnessProof
}
credentialDefinition: CredentialDefinition
credentialDefinitionPrivate: CredentialDefinitionPrivate
keyCorrectnessProof: KeyCorrectnessProof
}
| undefined
try {
createReturnObj = CredentialDefinition.create({
Expand Down Expand Up @@ -114,9 +114,9 @@ export class AnonCredsRsIssuerService implements AnonCredsIssuerService {

let createReturnObj:
| {
revocationRegistryDefinition: RevocationRegistryDefinition
revocationRegistryDefinitionPrivate: RevocationRegistryDefinitionPrivate
}
revocationRegistryDefinition: RevocationRegistryDefinition
revocationRegistryDefinitionPrivate: RevocationRegistryDefinitionPrivate
}
| undefined
try {
createReturnObj = RevocationRegistryDefinition.create({
Expand Down 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 31993ce

Please sign in to comment.