From 31993ce990b4fe2dd7bf93fa9973b7c6c280fecc Mon Sep 17 00:00:00 2001 From: George Mulhearn <57472912+gmulhearn@users.noreply.github.com> Date: Thu, 5 Dec 2024 22:03:45 +1000 Subject: [PATCH] rev index fix Signed-off-by: George Mulhearn --- .../src/anoncreds-rs/AnonCredsRsIssuerService.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/anoncreds/src/anoncreds-rs/AnonCredsRsIssuerService.ts b/packages/anoncreds/src/anoncreds-rs/AnonCredsRsIssuerService.ts index 9636c1c4ea..c6371f740c 100644 --- a/packages/anoncreds/src/anoncreds-rs/AnonCredsRsIssuerService.ts +++ b/packages/anoncreds/src/anoncreds-rs/AnonCredsRsIssuerService.ts @@ -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({ @@ -114,9 +114,9 @@ export class AnonCredsRsIssuerService implements AnonCredsIssuerService { let createReturnObj: | { - revocationRegistryDefinition: RevocationRegistryDefinition - revocationRegistryDefinitionPrivate: RevocationRegistryDefinitionPrivate - } + revocationRegistryDefinition: RevocationRegistryDefinition + revocationRegistryDefinitionPrivate: RevocationRegistryDefinitionPrivate + } | undefined try { createReturnObj = RevocationRegistryDefinition.create({ @@ -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)