We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdb7450 commit 1138cceCopy full SHA for 1138cce
substratee-node-primitives/src/lib.rs
@@ -65,8 +65,9 @@ pub mod calls {
65
where
66
MultiSignature: From<P::Signature>,
67
{
68
- for n in 0..api.get_storage_value("SubstrateeRegistry", "EnclaveCount", None)? {
69
- let worker = get_worker_info(api, n)?;
+ // the registry starts indexing its map at one
+ for n in 1..=api.get_storage_value("SubstrateeRegistry", "EnclaveCount", None)? {
70
+ let worker = get_worker_info(api, n).unwrap();
71
if &worker.pubkey != self_account {
72
return Some(worker);
73
}
0 commit comments