Skip to content

Commit

Permalink
doc: todo for after returning rev_list on methods
Browse files Browse the repository at this point in the history
  • Loading branch information
whalelephant committed Jan 17, 2023
1 parent 5d2edb1 commit 2880b2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions anoncreds/src/data_types/anoncreds/rev_reg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ impl RevocationStatusList {
self.revocation_list.get(idx).as_deref().copied()
}

// TODO: update registry as well
pub fn revoke(&mut self, idx: usize) -> Option<bool> {
match self.revocation_list.get_mut(idx) {
Some(mut i) => {
Expand Down
1 change: 1 addition & 0 deletions anoncreds/tests/utils/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ impl<'a> Mock<'a> {
pw.credentials.push(recv_cred);
if let Some(rev_reg) = new_rev_reg {
let mut list = self.ledger.revcation_list.get_mut(*rev_reg_id).unwrap();
// TODO: update the registry as well.
list.unrevoke(*rev_idx as usize);

self.issuer_wallets
Expand Down

0 comments on commit 2880b2f

Please sign in to comment.