Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Supremesource committed Dec 3, 2024
1 parent 3bffb3c commit 6af0368
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions xtask/src/mainnet_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ type OpaqueBlock = Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>;
// }

async fn create_mainnet_spec() -> Box<dyn ChainSpec> {
let mut chain_spec = sc_service::GenericChainSpec::<Option<()>>::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"))

Check failure on line 98 in xtask/src/mainnet_spec.rs

View workflow job for this annotation

GitHub Actions / clippy

expected a type, found a trait

error[E0782]: expected a type, found a trait --> xtask/src/mainnet_spec.rs:98:9 | 98 | sc_service::ChainSpec::from_json_bytes(include_bytes!("../../node/chain-specs/main.json")) | ^^^^^^^^^^^^^^^^^^^^^ | help: you can add the `dyn` keyword if you want a trait object | 98 | <dyn sc_service::ChainSpec>::from_json_bytes(include_bytes!("../../node/chain-specs/main.json")) | ++++ +
.unwrap();

let api = "wss://api.communeai.net".to_string();

Expand Down

0 comments on commit 6af0368

Please sign in to comment.