Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: polkadot v1.1.0 client #1808

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: clippy
  • Loading branch information
wischli committed Apr 12, 2024
commit 7e20aadf930fb5cf3316936fd952c0446decada4
2 changes: 1 addition & 1 deletion node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
service::{evm, AltairRuntimeExecutor, CentrifugeRuntimeExecutor, DevelopmentRuntimeExecutor},
};

const LOCAL_PARA_ID: ParaId = ParaId(2000);
pub const LOCAL_PARA_ID: ParaId = ParaId::new(2000u32);

enum ChainIdentity {
Altair,
Expand All @@ -46,7 +46,7 @@
fn identify(&self) -> ChainIdentity {
if self.id().starts_with("centrifuge") || self.id().starts_with("catalyst") {
ChainIdentity::Centrifuge
} else if self.id().starts_with("altair") {

Check warning on line 49 in node/src/command.rs

View check run for this annotation

Codecov / codecov/patch

node/src/command.rs#L49

Added line #L49 was not covered by tests
ChainIdentity::Altair
} else {
ChainIdentity::Development
Expand All @@ -60,15 +60,15 @@
}
}

fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {

Check warning on line 63 in node/src/command.rs

View check run for this annotation

Codecov / codecov/patch

node/src/command.rs#L63

Added line #L63 was not covered by tests
match id {
"centrifuge" => Ok(Box::new(chain_spec::centrifuge_config())),
"centrifuge-local" => Ok(Box::new(chain_spec::centrifuge_local(LOCAL_PARA_ID))),

Check warning on line 66 in node/src/command.rs

View check run for this annotation

Codecov / codecov/patch

node/src/command.rs#L66

Added line #L66 was not covered by tests
"altair" => Ok(Box::new(chain_spec::altair_config())),
"altair-local" => Ok(Box::new(chain_spec::altair_local(LOCAL_PARA_ID))),

Check warning on line 68 in node/src/command.rs

View check run for this annotation

Codecov / codecov/patch

node/src/command.rs#L68

Added line #L68 was not covered by tests
"catalyst" => Ok(Box::new(chain_spec::catalyst_config())),
"demo" => Ok(Box::new(chain_spec::demo(LOCAL_PARA_ID))),
"development" => Ok(Box::new(chain_spec::development(LOCAL_PARA_ID))),

Check warning on line 71 in node/src/command.rs

View check run for this annotation

Codecov / codecov/patch

node/src/command.rs#L70-L71

Added lines #L70 - L71 were not covered by tests
"" => Err(String::from("No Chain-id provided")),

path => {
Expand Down Expand Up @@ -120,7 +120,7 @@
}

fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
load_spec(id)

Check warning on line 123 in node/src/command.rs

View check run for this annotation

Codecov / codecov/patch

node/src/command.rs#L123

Added line #L123 was not covered by tests
}
}

Expand Down
Loading