Skip to content

Commit

Permalink
[peoples-chains] fix para id
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Feb 19, 2025
1 parent f3b66a0 commit 42a2134
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use sp_keyring::Sr25519Keyring;
use testnet_parachains_constants::rococo::{currency::UNITS as ROC, xcm_version::SAFE_XCM_VERSION};

const PEOPLE_ROCOCO_ED: Balance = ExistentialDeposit::get();
const PEOPLE_PARA_ID: ParaId = ParaId::from(1004);

fn people_rococo_genesis(
invulnerables: Vec<(AccountId, AuraId)>,
Expand Down Expand Up @@ -67,8 +68,8 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
],
Sr25519Keyring::well_known().map(|x| x.to_account_id()).collect(),
testnet_parachains_constants::rococo::currency::UNITS * 1_000_000,
1000.into(),
ROC * 1_000_000,
PEOPLE_PARA_ID,
),
sp_genesis_builder::DEV_RUNTIME_PRESET => people_rococo_genesis(
// initial collators.
Expand All @@ -80,7 +81,7 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
Sr25519Keyring::BobStash.to_account_id(),
],
ROC * 1_000_000,
1000.into(),
PEOPLE_PARA_ID,
),
_ => return None,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use testnet_parachains_constants::westend::{
};

const PEOPLE_WESTEND_ED: Balance = ExistentialDeposit::get();
const PEOPLE_PARA_ID: ParaId = ParaId::from(1004);

fn people_westend_genesis(
invulnerables: Vec<(AccountId, AuraId)>,
Expand Down Expand Up @@ -69,8 +70,8 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
(Sr25519Keyring::Bob.to_account_id(), Sr25519Keyring::Bob.public().into()),
],
Sr25519Keyring::well_known().map(|x| x.to_account_id()).collect(),
testnet_parachains_constants::westend::currency::UNITS * 1_000_000,
1000.into(),
ROC * 1_000_000,
PEOPLE_PARA_ID,
),
sp_genesis_builder::DEV_RUNTIME_PRESET => people_westend_genesis(
// initial collators.
Expand All @@ -82,7 +83,7 @@ pub fn get_preset(id: &PresetId) -> Option<Vec<u8>> {
Sr25519Keyring::BobStash.to_account_id(),
],
ROC * 1_000_000,
1000.into(),
PEOPLE_PARA_ID,
),
_ => return None,
};
Expand Down

0 comments on commit 42a2134

Please sign in to comment.