Skip to content

Commit

Permalink
chore: fix rebase
Browse files Browse the repository at this point in the history
Signed-off-by: bwty <[email protected]>
  • Loading branch information
whalelephant committed Jan 19, 2023
1 parent bc1a9f4 commit f663deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
3 changes: 2 additions & 1 deletion anoncreds/tests/anoncreds_demos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ fn anoncreds_with_revocation_works_for_single_issuer_single_prover() {
.expect("Error creating gvt credential definition");

// This will create a tails file locally in the .tmp dir
create_dir(TF_PATH)
let tf_path = "../.tmp";
create_dir(tf_path)
.or_else(|e| -> Result<(), std::io::Error> {
println!(
"Tail file path creation error but test can still proceed {}",
Expand Down
14 changes: 0 additions & 14 deletions anoncreds/tests/utils/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,20 +182,6 @@ impl<'a> Mock<'a> {
HashMap::from([(time_now, revocation_status_list)]),
);

// TODO create_revocation_registry needs issuance type to update this
let list = bitvec![0; self.max_cred_num as usize ];
let revocation_list = RevocationStatusList::new(
Some(rev_reg_id),
list,
Some(rev_reg.clone().value),
Some(time_now),
)
.unwrap();

self.ledger
.revcation_list
.insert(rev_reg_id, revocation_list);

self.ledger.rev_reg_defs.insert(
RevocationRegistryDefinitionId::new_unchecked(*rev_reg_id),
rev_reg_def_pub,
Expand Down

0 comments on commit f663deb

Please sign in to comment.