11use sc_service:: ChainType ;
2- // use sp_core::sr25519;
3- use sp_core:: crypto:: UncheckedInto ;
42
3+ use sp_core:: crypto:: UncheckedInto ;
54use hex_literal:: hex;
65
76use super :: {
@@ -16,7 +15,7 @@ use hashed_parachain_runtime::{
1615
1716/// Specialized `ChainSpec` for Hashed Network
1817pub type HashedChainSpec =
19- sc_service:: GenericChainSpec < hashed_parachain_runtime:: GenesisConfig , Extensions > ;
18+ sc_service:: GenericChainSpec < hashed_parachain_runtime:: RuntimeGenesisConfig , Extensions > ;
2019
2120/// Gen HASH chain specification
2221pub fn get_chain_spec ( ) -> HashedChainSpec {
@@ -83,12 +82,13 @@ fn hashed_genesis(
8382 endowed_accounts : Vec < AccountId > ,
8483 root_key : AccountId ,
8584 id : ParaId ,
86- ) -> hashed_parachain_runtime:: GenesisConfig {
87- hashed_parachain_runtime:: GenesisConfig {
85+ ) -> hashed_parachain_runtime:: RuntimeGenesisConfig {
86+ hashed_parachain_runtime:: RuntimeGenesisConfig {
8887 system : hashed_parachain_runtime:: SystemConfig {
8988 code : hashed_parachain_runtime:: WASM_BINARY
9089 . expect ( "WASM binary was not build, please build it!" )
9190 . to_vec ( ) ,
91+ ..Default :: default ( )
9292 } ,
9393 balances : hashed_parachain_runtime:: BalancesConfig {
9494 balances : endowed_accounts
@@ -101,7 +101,7 @@ fn hashed_genesis(
101101 sudo : SudoConfig { key : Some ( root_key) } ,
102102 council : Default :: default ( ) ,
103103 treasury : Default :: default ( ) ,
104- parachain_info : hashed_parachain_runtime:: ParachainInfoConfig { parachain_id : id } ,
104+ parachain_info : hashed_parachain_runtime:: ParachainInfoConfig { parachain_id : id, .. Default :: default ( ) } ,
105105 collator_selection : hashed_parachain_runtime:: CollatorSelectionConfig {
106106 invulnerables : invulnerables. iter ( ) . cloned ( ) . map ( |( acc, _) | acc) . collect ( ) ,
107107 candidacy_bond : EXISTENTIAL_DEPOSIT * 16 ,
@@ -126,6 +126,7 @@ fn hashed_genesis(
126126 parachain_system : Default :: default ( ) ,
127127 polkadot_xcm : hashed_parachain_runtime:: PolkadotXcmConfig {
128128 safe_xcm_version : Some ( SAFE_XCM_VERSION ) ,
129+ ..Default :: default ( )
129130 } ,
130131 bitcoin_vaults : BitcoinVaultsConfig {
131132 bdk_services_url : BDK_SERVICES_MAINNET_URL . as_bytes ( ) . to_vec ( ) ,
0 commit comments