From 58a425667eeef5eec2ee0a92fcfbcf0b2357b2e0 Mon Sep 17 00:00:00 2001 From: Ricardo Rius <9488369+riusricardo@users.noreply.github.com> Date: Wed, 8 Dec 2021 11:56:50 +0100 Subject: [PATCH] Fix Statemine ss58 prefixes. (#829) * Fix Statemine prefix * Add prefix to chain spec --- cumulus/polkadot-parachains/res/statemine.json | 1 + cumulus/polkadot-parachains/res/statemine_genesis.json | 1 + cumulus/polkadot-parachains/src/chain_spec.rs | 3 +++ 3 files changed, 5 insertions(+) diff --git a/cumulus/polkadot-parachains/res/statemine.json b/cumulus/polkadot-parachains/res/statemine.json index 826cdd37f0..699ff9150d 100644 --- a/cumulus/polkadot-parachains/res/statemine.json +++ b/cumulus/polkadot-parachains/res/statemine.json @@ -10,6 +10,7 @@ "telemetryEndpoints": null, "protocolId": null, "properties": { + "ss58Format": 2, "tokenDecimals": 12, "tokenSymbol": "KSM" }, diff --git a/cumulus/polkadot-parachains/res/statemine_genesis.json b/cumulus/polkadot-parachains/res/statemine_genesis.json index 95b7a973a4..8b0dee2f8c 100644 --- a/cumulus/polkadot-parachains/res/statemine_genesis.json +++ b/cumulus/polkadot-parachains/res/statemine_genesis.json @@ -8,6 +8,7 @@ "telemetryEndpoints": null, "protocolId": null, "properties": { + "ss58Format": 2, "tokenDecimals": 12, "tokenSymbol": "KSM" }, diff --git a/cumulus/polkadot-parachains/src/chain_spec.rs b/cumulus/polkadot-parachains/src/chain_spec.rs index a1093caae2..3a7ae1920c 100644 --- a/cumulus/polkadot-parachains/src/chain_spec.rs +++ b/cumulus/polkadot-parachains/src/chain_spec.rs @@ -352,6 +352,7 @@ fn statemint_genesis( pub fn statemine_development_config() -> StatemineChainSpec { let mut properties = sc_chain_spec::Properties::new(); + properties.insert("ss58Format".into(), 2.into()); properties.insert("tokenSymbol".into(), "KSM".into()); properties.insert("tokenDecimals".into(), 12.into()); @@ -387,6 +388,7 @@ pub fn statemine_development_config() -> StatemineChainSpec { pub fn statemine_local_config() -> StatemineChainSpec { let mut properties = sc_chain_spec::Properties::new(); + properties.insert("ss58Format".into(), 2.into()); properties.insert("tokenSymbol".into(), "KSM".into()); properties.insert("tokenDecimals".into(), 12.into()); @@ -436,6 +438,7 @@ pub fn statemine_local_config() -> StatemineChainSpec { pub fn statemine_config() -> StatemineChainSpec { let mut properties = sc_chain_spec::Properties::new(); + properties.insert("ss58Format".into(), 2.into()); properties.insert("tokenSymbol".into(), "KSM".into()); properties.insert("tokenDecimals".into(), 12.into());