Skip to content
Snippets Groups Projects
Commit 366af125 authored by Pascal Engélibert's avatar Pascal Engélibert :bicyclist:
Browse files

fix(cert): genesis: wrong received_count in StorageIdtyCertMeta (!115)

* fix(cert): genesis: wrong received_count in StorageIdtyCertMeta
parent 3761ec6e
No related branches found
No related tags found
1 merge request!115fix(cert): genesis: wrong received_count in StorageIdtyCertMeta
Pipeline #17625 waiting for manual action
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment