diff --git a/src/credential-status-manager-base.ts b/src/credential-status-manager-base.ts index 902fae6..cadb4cf 100644 --- a/src/credential-status-manager-base.ts +++ b/src/credential-status-manager-base.ts @@ -103,7 +103,7 @@ export interface CredentialEventRecord { export interface ConfigRecord { id: string; statusCredentialSiteOrigin: string; - statusCredentialInfo: StatusCredentialInfo + statusCredentialInfo: StatusCredentialInfo; credentialsIssuedCounter: number; } @@ -537,9 +537,7 @@ export abstract class BaseCredentialStatusManager { signStatusCredential, signUserCredential } = this; - const { - issuerDid - } = await getSigningMaterial({ + const { issuerDid } = await getSigningMaterial({ didMethod, didSeed, didWebUrl @@ -755,9 +753,7 @@ export abstract class BaseCredentialStatusManager { didWebUrl, signStatusCredential } = this; - const { - issuerDid - } = await getSigningMaterial({ + const { issuerDid } = await getSigningMaterial({ didMethod, didSeed, didWebUrl @@ -1229,7 +1225,7 @@ export abstract class BaseCredentialStatusManager { }; } - // ensure that latest status credential for this purpose is being tracked in the config + // ensure that the latest status credential for this purpose is being tracked in the config if (!hasLatestStatusCredentialId) { return { valid: false, diff --git a/test/helpers.ts b/test/helpers.ts index 6adac56..bcfa58c 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -45,7 +45,6 @@ export const databasePassword = 'testpass'; export const statusCredentialSiteOrigin = 'https://credentials.example.edu/status'; export const didMethod = 'key' as DidMethod; export const didSeed = 'DsnrHBHFQP0ab59dQELh3uEwy7i5ArcOTwxkwRO2hM87CBRGWBEChPO7AjmwkAZ2'; -export const statusCredentialId = 'V27UAUYPNR'; export function checkLocalCredentialStatus( credentialWithStatus: any,