From 93fcd0adbc8bab0c58dccf4a2bf3016c6f2f53ec Mon Sep 17 00:00:00 2001 From: Squirrel <gilescope@gmail.com> Date: Wed, 19 Jan 2022 15:58:37 +0000 Subject: [PATCH] Update Statemint prefix (#916) Co-authored-by: Ricardo Rius <ricardo@parity.io> --- cumulus/polkadot-parachains/res/statemint.json | 1 + cumulus/polkadot-parachains/res/statemint_genesis.json | 1 + cumulus/polkadot-parachains/src/chain_spec.rs | 3 +++ 3 files changed, 5 insertions(+) diff --git a/cumulus/polkadot-parachains/res/statemint.json b/cumulus/polkadot-parachains/res/statemint.json index 20bc1d13724..e2776f51cd0 100644 --- a/cumulus/polkadot-parachains/res/statemint.json +++ b/cumulus/polkadot-parachains/res/statemint.json @@ -11,6 +11,7 @@ "telemetryEndpoints": null, "protocolId": null, "properties": { + "ss58Format": 0, "tokenDecimals": 10, "tokenSymbol": "DOT" }, diff --git a/cumulus/polkadot-parachains/res/statemint_genesis.json b/cumulus/polkadot-parachains/res/statemint_genesis.json index 3544c75afda..2763994949e 100644 --- a/cumulus/polkadot-parachains/res/statemint_genesis.json +++ b/cumulus/polkadot-parachains/res/statemint_genesis.json @@ -11,6 +11,7 @@ "telemetryEndpoints": null, "protocolId": null, "properties": { + "ss58Format": 0, "tokenDecimals": 10, "tokenSymbol": "DOT" }, diff --git a/cumulus/polkadot-parachains/src/chain_spec.rs b/cumulus/polkadot-parachains/src/chain_spec.rs index 76c6b28a17c..b0cbda9d9f0 100644 --- a/cumulus/polkadot-parachains/src/chain_spec.rs +++ b/cumulus/polkadot-parachains/src/chain_spec.rs @@ -271,6 +271,7 @@ pub fn westmint_session_keys(keys: AuraId) -> westmint_runtime::SessionKeys { pub fn statemint_development_config() -> StatemintChainSpec { let mut properties = sc_chain_spec::Properties::new(); + properties.insert("ss58Format".into(), 0.into()); properties.insert("tokenSymbol".into(), "DOT".into()); properties.insert("tokenDecimals".into(), 10.into()); @@ -307,6 +308,7 @@ pub fn statemint_development_config() -> StatemintChainSpec { pub fn statemint_local_config() -> StatemintChainSpec { let mut properties = sc_chain_spec::Properties::new(); + properties.insert("ss58Format".into(), 0.into()); properties.insert("tokenSymbol".into(), "DOT".into()); properties.insert("tokenDecimals".into(), 10.into()); @@ -358,6 +360,7 @@ pub fn statemint_local_config() -> StatemintChainSpec { // Not used for syncing, but just to determine the genesis values set for the upgrade from shell. pub fn statemint_config() -> StatemintChainSpec { let mut properties = sc_chain_spec::Properties::new(); + properties.insert("ss58Format".into(), 0.into()); properties.insert("tokenSymbol".into(), "DOT".into()); properties.insert("tokenDecimals".into(), 10.into()); -- GitLab