Skip to content

Commit

Permalink
Merge pull request #877 from UniqueNetwork/fix/sapphire-runtime
Browse files Browse the repository at this point in the history
fix: sapphire runtime
  • Loading branch information
CertainLach authored Feb 9, 2023
2 parents 8d17f4c + a921b70 commit 8a7a733
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions node/cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,14 @@ impl RuntimeIdentification for Box<dyn sc_service::ChainSpec> {
}

#[cfg(feature = "quartz-runtime")]
if self.id().starts_with("quartz") || self.id().starts_with("qtz") {
if self.id().starts_with("quartz")
|| self.id().starts_with("qtz")
|| self.id().starts_with("sapphire")
{
return RuntimeId::Quartz;
}

if self.id().starts_with("opal")
|| self.id().starts_with("sapphire")
|| self.id() == "dev"
|| self.id() == "local_testnet"
{
if self.id().starts_with("opal") || self.id() == "dev" || self.id() == "local_testnet" {
return RuntimeId::Opal;
}

Expand Down

0 comments on commit 8a7a733

Please sign in to comment.