From 2880b2f5117055539b8293099a91656f8dada7eb Mon Sep 17 00:00:00 2001 From: bwty Date: Tue, 17 Jan 2023 09:20:55 +0700 Subject: [PATCH] doc: todo for after returning rev_list on methods --- anoncreds/src/data_types/anoncreds/rev_reg.rs | 1 + anoncreds/tests/utils/mock.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/anoncreds/src/data_types/anoncreds/rev_reg.rs b/anoncreds/src/data_types/anoncreds/rev_reg.rs index 34082589..39c65df8 100644 --- a/anoncreds/src/data_types/anoncreds/rev_reg.rs +++ b/anoncreds/src/data_types/anoncreds/rev_reg.rs @@ -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 { match self.revocation_list.get_mut(idx) { Some(mut i) => { diff --git a/anoncreds/tests/utils/mock.rs b/anoncreds/tests/utils/mock.rs index 88a89898..2a3b850e 100644 --- a/anoncreds/tests/utils/mock.rs +++ b/anoncreds/tests/utils/mock.rs @@ -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