Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
Signed-off-by: artem.ivanov <[email protected]>
  • Loading branch information
Artemkaaas committed Nov 15, 2023
1 parent 5676fd8 commit 30099e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/services/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ struct CLProofVerifier<'a> {
cred_defs: &'a HashMap<CredentialDefinitionId, CredentialDefinition>,
rev_reg_defs: Option<&'a HashMap<RevocationRegistryDefinitionId, RevocationRegistryDefinition>>,
revocation_map:
Option<HashMap<RevocationRegistryDefinitionId, HashMap<u64, RevocationRegistry>>>,
Option<HashMap<RevocationRegistryDefinitionId, HashMap<u64, RevocationRegistry>>>,
}

impl<'a> CLProofVerifier<'a> {
Expand Down Expand Up @@ -1103,9 +1103,9 @@ impl<'a> CLProofVerifier<'a> {

let rev_reg_def = Some(rev_reg_defs.get(rev_reg_id).ok_or_else(|| {
err_msg!(
"Revocation Registry Definition not provided for ID: {:?}",
rev_reg_id
)
"Revocation Registry Definition not provided for ID: {:?}",
rev_reg_id
)
})?);

let rev_reg = Some(
Expand All @@ -1114,10 +1114,10 @@ impl<'a> CLProofVerifier<'a> {
.and_then(|regs| regs.get(&timestamp))
.ok_or_else(|| {
err_msg!(
"Revocation Registry not provided for ID and timestamp: {:?}, {:?}",
rev_reg_id,
timestamp
)
"Revocation Registry not provided for ID and timestamp: {:?}, {:?}",
rev_reg_id,
timestamp
)
})?,
);

Expand Down
3 changes: 2 additions & 1 deletion tests/anoncreds_demos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3648,7 +3648,8 @@ fn anoncreds_demo_works_for_issue_w3c_credential_add_identity_proof_present_w3c_
}

#[test]
fn anoncreds_demo_works_for_issue_w3c_credential_and_present_w3c_presentation_for_restrictions() {
fn anoncreds_demo_works_for_issue_w3c_credential_and_present_w3c_presentation_for_case_incentive_attributes(
) {
// Create Prover pseudo wallet and link secret
let mut prover_wallet = ProverWallet::default();

Expand Down

0 comments on commit 30099e0

Please sign in to comment.