Skip to content

Commit

Permalink
Reformat codes
Browse files Browse the repository at this point in the history
  • Loading branch information
icodezjb committed Dec 28, 2022
1 parent d5f34d4 commit 535c542
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
use cumulus_primitives_core::ParaId;
use hex_literal::hex;
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use sc_service::{ChainType, config::TelemetryEndpoints};
use sc_service::{config::TelemetryEndpoints, ChainType};
use serde::{Deserialize, Serialize};
use sp_core::{Pair, Public, sr25519, crypto::UncheckedInto};
use sp_core::{crypto::UncheckedInto, sr25519, Pair, Public};
use sp_runtime::traits::{IdentifyAccount, Verify};

use psc_runtime::{
Expand Down Expand Up @@ -72,8 +72,8 @@ pub fn get_collator_keys_from_seed(seed: &str) -> AuraId {

/// Helper function to generate an account ID from seed
pub fn get_account_id_from_seed<TPublic: Public>(seed: &str) -> AccountId
where
AccountPublic: From<<TPublic::Pair as Pair>::Public>,
where
AccountPublic: From<<TPublic::Pair as Pair>::Public>,
{
AccountPublic::from(get_from_seed::<TPublic>(seed)).into_account()
}
Expand Down Expand Up @@ -200,13 +200,12 @@ pub fn psc_config() -> ChainSpec {
move || {
psc_genesis(
// initial collators.
vec![
(
// 135jgXDi2HPt8KDmHrxLz44sNzNg1Dp3dcWmkmeQMaY9M8he
hex!("5c15207d5d764cc633fc7c29da559a1efc8a4369ce7868daeaf8844c6fc68739").into(),
hex!("ac0d16845456daf555c0102297f6337e52e600d879497610eb0ccf5c7e09485b").unchecked_into(),
),
],
vec![(
// 135jgXDi2HPt8KDmHrxLz44sNzNg1Dp3dcWmkmeQMaY9M8he
hex!("5c15207d5d764cc633fc7c29da559a1efc8a4369ce7868daeaf8844c6fc68739").into(),
hex!("ac0d16845456daf555c0102297f6337e52e600d879497610eb0ccf5c7e09485b")
.unchecked_into(),
)],
vec![],
POLKADOT_PARA_ID.into(),
hex!("5c15207d5d764cc633fc7c29da559a1efc8a4369ce7868daeaf8844c6fc68739").into(),
Expand Down

0 comments on commit 535c542

Please sign in to comment.