From ba53a674c3ad5a383942df4fb7f3b05e14eeb4e7 Mon Sep 17 00:00:00 2001 From: paulo Date: Tue, 17 Sep 2024 10:14:14 +0100 Subject: [PATCH] fix people-paseo chain-spec --- src/runtimes/paseo.rs | 2 +- src/runtimes/support.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/runtimes/paseo.rs b/src/runtimes/paseo.rs index 56df732..0914610 100644 --- a/src/runtimes/paseo.rs +++ b/src/runtimes/paseo.rs @@ -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", diff --git a/src/runtimes/support.rs b/src/runtimes/support.rs index 074ba1e..967d388 100644 --- a/src/runtimes/support.rs +++ b/src/runtimes/support.rs @@ -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, } } @@ -112,6 +113,7 @@ pub enum SupportedParasRuntime { PeoplePolkadot, PeopleKusama, PeopleWestend, + PeoplePaseo, } impl SupportedParasRuntime { @@ -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, } } } @@ -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"), } } }