Skip to content
Snippets Groups Projects
Commit 2790da83 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

feat(smith-members): remove Counted

parent d0e19424
No related branches found
No related tags found
No related merge requests found
......@@ -173,12 +173,12 @@ pub mod pallet {
/// maps identity index to smith value
#[pallet::storage]
pub type CertsByReceiver<T: Config> =
CountedStorageMap<_, Twox64Concat, T::IdtyIndex, Vec<T::IdtyIndex>, OptionQuery>;
StorageMap<_, Twox64Concat, T::IdtyIndex, Vec<T::IdtyIndex>, OptionQuery>;
/// maps identity index to smith status
#[pallet::storage]
pub type Smiths<T: Config> =
CountedStorageMap<_, Twox64Concat, T::IdtyIndex, SmithStatus, OptionQuery>;
StorageMap<_, Twox64Concat, T::IdtyIndex, SmithStatus, OptionQuery>;
// ERRORS //
......
......@@ -93,7 +93,7 @@ fn should_have_checks_on_certify() {
})
.execute_with(|| {
// Initially
assert_eq!(CertsByReceiver::<Runtime>::count(), 4);
assert_eq!(CertsByReceiver::<Runtime>::iter().count(), 4);
assert_eq!(Smiths::<Runtime>::get(1).unwrap(), SmithStatus::Smith);
assert_eq!(Smiths::<Runtime>::get(2).unwrap(), SmithStatus::Smith);
assert_eq!(Smiths::<Runtime>::get(3).unwrap(), SmithStatus::Pending);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment