referrerpolicy=no-referrer-when-downgrade

Function polkadot_parachain::chain_spec::extract_parachain_id

source ·
fn extract_parachain_id<'a>(
    id: &'a str,
    para_prefixes: &[&str],
) -> (&'a str, &'a str, Option<ParaId>)
Expand description

Extracts the normalized chain id and parachain id from the input chain id. (H/T to Phala for the idea) E.g. “penpal-kusama-2004” yields (“penpal-kusama”, Some(2004))