Skip to content

Commit

Permalink
fix people-paseo chain-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
paulormart committed Sep 17, 2024
1 parent 14f0aad commit ba53a67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtimes/paseo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use subxt::{
use subxt_signer::sr25519::Keypair;

pub const PASEO_SPEC: &str = include_str!("../../chain_specs/paseo.json");
pub const PASEO_POLKADOT_SPEC: &str = include_str!("../../chain_specs/people-paseo.json");
pub const PEOPLE_PASEO_SPEC: &str = include_str!("../../chain_specs/people-paseo.json");

#[subxt::subxt(
runtime_metadata_path = "metadata/paseo_metadata_small.scale",
Expand Down
4 changes: 4 additions & 0 deletions src/runtimes/support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl SupportedRuntime {
Self::Polkadot => Some(SupportedParasRuntime::PeoplePolkadot),
Self::Kusama => Some(SupportedParasRuntime::PeopleKusama),
Self::Westend => Some(SupportedParasRuntime::PeopleWestend),
Self::Paseo => Some(SupportedParasRuntime::PeoplePaseo),
_ => None,
}
}
Expand Down Expand Up @@ -112,6 +113,7 @@ pub enum SupportedParasRuntime {
PeoplePolkadot,
PeopleKusama,
PeopleWestend,
PeoplePaseo,
}

impl SupportedParasRuntime {
Expand All @@ -127,6 +129,7 @@ impl SupportedParasRuntime {
Self::PeoplePolkadot => polkadot::PEOPLE_POLKADOT_SPEC,
Self::PeopleKusama => kusama::PEOPLE_KUSAMA_SPEC,
Self::PeopleWestend => westend::PEOPLE_WESTEND_SPEC,
Self::PeoplePaseo => paseo::PEOPLE_PASEO_SPEC,
}
}
}
Expand All @@ -137,6 +140,7 @@ impl std::fmt::Display for SupportedParasRuntime {
Self::PeoplePolkadot => write!(f, "People Polkadot"),
Self::PeopleKusama => write!(f, "People Kusama"),
Self::PeopleWestend => write!(f, "People Westend"),
Self::PeoplePaseo => write!(f, "People Paseo"),
}
}
}

0 comments on commit ba53a67

Please sign in to comment.