Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
use json chainspec for bridge-hub-rococo and bridge-hub-wococo
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson committed Apr 21, 2023
1 parent 02262d5 commit ab48ed8
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions polkadot-parachain/src/chain_spec/bridge_hubs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -151,12 +148,10 @@ impl BridgeHubRuntimeType {
ParaId::new(1013),
|_| (),
))),
BridgeHubRuntimeType::Wococo => Ok(Box::new(wococo::live_config(
wococo::BRIDGE_HUB_WOCOCO,
"Wococo BridgeHub",
"wococo",
ParaId::new(1014),
))),
BridgeHubRuntimeType::Wococo =>
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",
Expand Down

0 comments on commit ab48ed8

Please sign in to comment.