Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Sep 11, 2024
1 parent dae3750 commit 64d6888
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions crates/orchestrator/src/generators/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ impl ChainSpec {

clear_authorities(&pointer, &mut chain_spec_json);

let key_type_to_use = if para.is_evm_based {
let key_type_to_use = if para.is_evm_based {
SessionKeyType::Evm
} else {
SessionKeyType::Default
Expand All @@ -467,12 +467,7 @@ impl ChainSpec {
.pointer(&format!("{}/session", pointer))
.is_some()
{
add_authorities(
&pointer,
&mut chain_spec_json,
&validators,
key_type_to_use,
);
add_authorities(&pointer, &mut chain_spec_json, &validators, key_type_to_use);
} else if chain_spec_json
.pointer(&format!("{}/aura", pointer))
.is_some()
Expand All @@ -490,7 +485,12 @@ impl ChainSpec {
.filter(|node| node.is_invulnerable)
.collect();

add_collator_selection(&pointer, &mut chain_spec_json, &invulnerables, key_type_to_use);
add_collator_selection(
&pointer,
&mut chain_spec_json,
&invulnerables,
key_type_to_use,
);

// override `parachainInfo/parachainId`
override_parachain_info(&pointer, &mut chain_spec_json, para.id);
Expand Down Expand Up @@ -1053,7 +1053,7 @@ fn add_collator_selection(
session_key: SessionKeyType,
) {
if let Some(val) = chain_spec_json.pointer_mut(runtime_config_ptr) {
let key_type = if let SessionKeyType::Evm = session_key {
let key_type = if let SessionKeyType::Evm = session_key {
"eth"
} else {
"sr"
Expand Down

0 comments on commit 64d6888

Please sign in to comment.