Skip to content

Commit

Permalink
fixing integration tets
Browse files Browse the repository at this point in the history
  • Loading branch information
maycon-mello committed Jan 7, 2025
1 parent 7e3fc23 commit 518f0f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/bbs-revocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const trimHexID = id => {

export const getWitnessDetails = async (credential, _membershipWitness) => {
const {credentialStatus} = credential;
const registryId = credentialStatus?.id.replace('dock:accumulator:', '');
const registryId = credentialStatus?.id;
const revocationIndex = credentialStatus.revocationId;

const queriedAccumulator = await dock.accumulatorModule.getAccumulator(
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm/src/services/credential/bbs-revocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const getWitnessDetails = async (credential, _membershipWitness) => {
}

const {credentialStatus} = credential;
const registryId = credentialStatus?.id.replace('dock:accumulator:', '');
const registryId = credentialStatus?.id
const revocationIndex = credentialStatus.revocationId;

const queriedAccumulator = await blockchainService.modules.accumulator.getAccumulator(
Expand Down
4 changes: 2 additions & 2 deletions packages/wasm/src/services/credential/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class CredentialService {
return null;
}

return credential?.credentialStatus.id.replace('dock:accumulator:', '');
return credential?.credentialStatus.id;
}

async getAccumulatorData({credential}) {
Expand Down Expand Up @@ -405,7 +405,7 @@ class CredentialService {
if (witness) {
const details = await getWitnessDetails(credential, witness);
const chainModule =
credential.credentialStatus.id.indexOf('accumulator:dock:') === 0
credential.credentialStatus.id.indexOf('dock:accumulator') === 0
? blockchainService.modules.accumulator.modules[0]
: blockchainService.modules.accumulator.modules[1];
const accumulatorModuleClass = chainModule.constructor;
Expand Down

0 comments on commit 518f0f0

Please sign in to comment.