diff --git a/xtask/src/mainnet_spec.rs b/xtask/src/mainnet_spec.rs index aba97513..244746ef 100644 --- a/xtask/src/mainnet_spec.rs +++ b/xtask/src/mainnet_spec.rs @@ -94,10 +94,9 @@ type OpaqueBlock = Block, OpaqueExtrinsic>; // } async fn create_mainnet_spec() -> Box { - let mut chain_spec = sc_service::GenericChainSpec::>::from_json_bytes( - include_bytes!("../../node/chain-specs/main.json"), - ) - .unwrap(); + let mut chain_spec = + sc_service::ChainSpec::from_json_bytes(include_bytes!("../../node/chain-specs/main.json")) + .unwrap(); let api = "wss://api.communeai.net".to_string();