Skip to content

Commit

Permalink
adds minor polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kezike committed Apr 22, 2024
1 parent bc28956 commit fcca385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/credential-status-manager-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface CredentialEventRecord {
export interface ConfigRecord {
id: string;
statusCredentialSiteOrigin: string;
statusCredentialInfo: StatusCredentialInfo
statusCredentialInfo: StatusCredentialInfo;
credentialsIssuedCounter: number;
}

Expand Down Expand Up @@ -537,9 +537,7 @@ export abstract class BaseCredentialStatusManager {
signStatusCredential,
signUserCredential
} = this;
const {
issuerDid
} = await getSigningMaterial({
const { issuerDid } = await getSigningMaterial({
didMethod,
didSeed,
didWebUrl
Expand Down Expand Up @@ -755,9 +753,7 @@ export abstract class BaseCredentialStatusManager {
didWebUrl,
signStatusCredential
} = this;
const {
issuerDid
} = await getSigningMaterial({
const { issuerDid } = await getSigningMaterial({
didMethod,
didSeed,
didWebUrl
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fcca385

Please sign in to comment.