From ab8c17f76efee6cea280cdc06a88163f4d1d02fb Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Fri, 21 Apr 2023 10:34:02 +0200 Subject: [PATCH] use json chainspec for bridge-hub-rococo and bridge-hub-wococo --- .../src/chain_spec/bridge_hubs.rs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/polkadot-parachain/src/chain_spec/bridge_hubs.rs b/polkadot-parachain/src/chain_spec/bridge_hubs.rs index f3c6dd1a9899..d4dd512747bb 100644 --- a/polkadot-parachain/src/chain_spec/bridge_hubs.rs +++ b/polkadot-parachain/src/chain_spec/bridge_hubs.rs @@ -130,13 +130,10 @@ impl BridgeHubRuntimeType { Ok(Box::new(westend::BridgeHubChainSpec::from_json_bytes( &include_bytes!("../../../parachains/chain-specs/bridge-hub-westend.json")[..], )?)), - BridgeHubRuntimeType::Rococo => Ok(Box::new(rococo::live_config( - rococo::BRIDGE_HUB_ROCOCO, - "Rococo BridgeHub", - "rococo", - ParaId::new(1013), - |_| (), - ))), + BridgeHubRuntimeType::Rococo => + Ok(Box::new(rococo::BridgeHubChainSpec::from_json_bytes( + &include_bytes!("../../../parachains/chain-specs/bridge-hub-rococo.json")[..], + )?)), BridgeHubRuntimeType::RococoLocal => Ok(Box::new(rococo::local_config( rococo::BRIDGE_HUB_ROCOCO_LOCAL, "Rococo BridgeHub Local", @@ -152,11 +149,9 @@ impl BridgeHubRuntimeType { |_| (), ))), BridgeHubRuntimeType::Wococo => Ok(Box::new(wococo::live_config( - wococo::BRIDGE_HUB_WOCOCO, - "Wococo BridgeHub", - "wococo", - ParaId::new(1014), - ))), + Ok(Box::new(wococo::BridgeHubChainSpec::from_json_bytes( + &include_bytes!("../../../parachains/chain-specs/bridge-hub-wococo.json")[..], + )?)), BridgeHubRuntimeType::WococoLocal => Ok(Box::new(wococo::local_config( wococo::BRIDGE_HUB_WOCOCO_LOCAL, "Wococo BridgeHub Local",