From e96f24bdfb738b90e880dd156601e54a4e831171 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Wed, 27 Dec 2023 13:40:45 +0100 Subject: [PATCH] fix(smith-members): remove some TODO --- node/src/chain_spec/gen_genesis_data.rs | 2 -- pallets/duniter-wot/src/lib.rs | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/node/src/chain_spec/gen_genesis_data.rs b/node/src/chain_spec/gen_genesis_data.rs index b0acb65f8..ab9856efe 100644 --- a/node/src/chain_spec/gen_genesis_data.rs +++ b/node/src/chain_spec/gen_genesis_data.rs @@ -1813,7 +1813,6 @@ where Ok(genesis_data) } -// TODO: avoid duplication? #[cfg(feature = "gdev")] fn clique_wot( initial_identities_len: usize, @@ -1841,7 +1840,6 @@ fn clique_wot( (certs_by_issuer, count) } -// TODO: avoid duplication? #[cfg(feature = "gdev")] fn clique_smith_wot(initial_identities_len: usize) -> BTreeMap<IdtyIndex, (bool, Vec<IdtyIndex>)> { let mut certs_by_issuer = BTreeMap::new(); diff --git a/pallets/duniter-wot/src/lib.rs b/pallets/duniter-wot/src/lib.rs index f6f0c331d..eb127c0cc 100644 --- a/pallets/duniter-wot/src/lib.rs +++ b/pallets/duniter-wot/src/lib.rs @@ -153,11 +153,7 @@ where } // implement cert call checks -impl<T: Config> pallet_certification::traits::CheckCertAllowed<IdtyIndex> for Pallet<T> -// TODO (#136) add the following where clause once checks can be done on pallet instance -// where -// T: pallet_membership::Config<I>, -{ +impl<T: Config> pallet_certification::traits::CheckCertAllowed<IdtyIndex> for Pallet<T> { // check the following: // - issuer has identity // - issuer identity is member -- GitLab