From 366af12514af962724a5885a4cd89847a3ebe53c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Eng=C3=A9libert?= <tuxmain@zettascript.org> Date: Fri, 14 Oct 2022 19:08:46 +0200 Subject: [PATCH] fix(cert): genesis: wrong received_count in StorageIdtyCertMeta (nodes/rust/duniter-v2s!115) * fix(cert): genesis: wrong received_count in StorageIdtyCertMeta --- pallets/certification/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pallets/certification/src/lib.rs b/pallets/certification/src/lib.rs index 1daa79721..84007fc66 100644 --- a/pallets/certification/src/lib.rs +++ b/pallets/certification/src/lib.rs @@ -127,8 +127,9 @@ pub mod pallet { .or_insert(IdtyCertMeta { issued_count: 0, next_issuable_on: sp_runtime::traits::Zero::zero(), - received_count: issuers.len() as u32, - }); + received_count: 0, + }) + .received_count = issuers.len() as u32; let mut issuers_: Vec<_> = Vec::with_capacity(issuers.len()); for (issuer, maybe_removable_on) in issuers { @@ -138,7 +139,7 @@ pub mod pallet { .or_insert(IdtyCertMeta { issued_count: 0, next_issuable_on: sp_runtime::traits::Zero::zero(), - received_count: issuers.len() as u32, + received_count: 0, }) .issued_count += 1; -- GitLab