@@ -24,8 +24,8 @@ use std::{
2424use bifrost_runtime:: {
2525 constants:: currency:: DOLLARS , AccountId , AuraId , Balance , BalancesConfig , BlockNumber ,
2626 CollatorSelectionConfig , CouncilConfig , DemocracyConfig , GenesisConfig , IndicesConfig ,
27- ParachainInfoConfig , SessionConfig , SudoConfig , SystemConfig , TechnicalCommitteeConfig ,
28- TokensConfig , VestingConfig , WASM_BINARY ,
27+ ParachainInfoConfig , SessionConfig , SystemConfig , TechnicalCommitteeConfig , TokensConfig ,
28+ VestingConfig , WASM_BINARY ,
2929} ;
3030use cumulus_primitives_core:: ParaId ;
3131use frame_benchmarking:: { account, whitelisted_caller} ;
@@ -50,7 +50,6 @@ const ENDOWMENT: u128 = 1_000_000 * DOLLARS;
5050
5151pub fn bifrost_genesis (
5252 invulnerables : Vec < ( AccountId , AuraId ) > ,
53- root_key : AccountId ,
5453 balances : Vec < ( AccountId , Balance ) > ,
5554 vestings : Vec < ( AccountId , BlockNumber , BlockNumber , Balance ) > ,
5655 id : ParaId ,
@@ -73,7 +72,6 @@ pub fn bifrost_genesis(
7372 technical_membership : Default :: default ( ) ,
7473 treasury : Default :: default ( ) ,
7574 phragmen_election : Default :: default ( ) ,
76- sudo : SudoConfig { key : root_key. clone ( ) } ,
7775 parachain_info : ParachainInfoConfig { parachain_id : id } ,
7876 collator_selection : CollatorSelectionConfig {
7977 invulnerables : invulnerables. iter ( ) . cloned ( ) . map ( |( acc, _) | acc) . collect ( ) ,
@@ -128,7 +126,6 @@ fn development_config_genesis(id: ParaId) -> GenesisConfig {
128126 get_account_id_from_seed:: <sr25519:: Public >( "Alice" ) ,
129127 get_from_seed:: <AuraId >( "Alice" ) ,
130128 ) ] ,
131- get_account_id_from_seed :: < sr25519:: Public > ( "Alice" ) ,
132129 balances,
133130 vestings,
134131 id,
@@ -198,7 +195,6 @@ fn local_config_genesis(id: ParaId) -> GenesisConfig {
198195 ) ,
199196 ( get_account_id_from_seed:: <sr25519:: Public >( "Bob" ) , get_from_seed:: <AuraId >( "Bob" ) ) ,
200197 ] ,
201- get_account_id_from_seed :: < sr25519:: Public > ( "Alice" ) ,
202198 balances,
203199 vestings,
204200 id,
@@ -266,12 +262,6 @@ fn bifrost_config_genesis(id: ParaId) -> GenesisConfig {
266262 ) ,
267263 ] ;
268264
269- let root_key: AccountId = hex ! [
270- // cjAZA391BNi2S1Je7PNGHiX4UoJh3SbknQSDQ7qh3g4Aa9H
271- "2c64a40ec236d0a0823065791946f6254c4577c6110f512614bd6ece1a3fa22b"
272- ]
273- . into ( ) ;
274-
275265 let exe_dir = {
276266 let mut exe_dir = std:: env:: current_exe ( ) . unwrap ( ) ;
277267 exe_dir. pop ( ) ;
@@ -311,7 +301,6 @@ fn bifrost_config_genesis(id: ParaId) -> GenesisConfig {
311301 use sp_core:: sp_std:: collections:: btree_map:: BTreeMap ;
312302 bifrost_genesis (
313303 invulnerables,
314- root_key,
315304 balances,
316305 vesting_configs. into_iter ( ) . flat_map ( |vc| vc. vesting ) . collect ( ) ,
317306 id,
0 commit comments