Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
al3mart committed Jun 17, 2024
1 parent 549ecda commit c08859d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions chain-spec-generator/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ pub fn from_json_file(filepath: &str, supported: String) -> Result<Box<dyn Chain
let chain_spec: EmptyChainSpecWithId = serde_json::from_reader(reader)
.expect("Failed to read 'json' file with ChainSpec configuration");
match &chain_spec.id {
x if x.starts_with("paseo") | x.starts_with("dot") =>
Ok(Box::new(PaseoChainSpec::from_json_file(path)?)),
x if x.starts_with("paseo") | x.starts_with("dot") => {
Ok(Box::new(PaseoChainSpec::from_json_file(path)?))
},
/* x if x.starts_with("asset-hub-paseo") =>
Ok(Box::new(AssetHubPolkadotChainSpec::from_json_file(path)?)), */
_ => Err(format!("Unknown chain 'id' in json file. Only supported: {supported}'")),
Expand Down
4 changes: 2 additions & 2 deletions relay/paseo/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ where
V3 { location, asset_id } => (location.try_into()?, asset_id.try_into()?),
V4 { location, asset_id } => (location, asset_id),
};
if asset_id.0.contains_parents_only(1) &&
IsChildSystemParachain::<ParaId>::contains(&location)
if asset_id.0.contains_parents_only(1)
&& IsChildSystemParachain::<ParaId>::contains(&location)
{
Ok(balance)
} else {
Expand Down
4 changes: 2 additions & 2 deletions relay/paseo/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ impl Contains<Location> for CollectivesOrFellows {
fn contains(loc: &Location) -> bool {
matches!(
loc.unpack(),
(0, [Parachain(COLLECTIVES_ID)]) |
(0, [Parachain(COLLECTIVES_ID), Plurality { id: BodyId::Technical, .. }])
(0, [Parachain(COLLECTIVES_ID)])
| (0, [Parachain(COLLECTIVES_ID), Plurality { id: BodyId::Technical, .. }])
)
}
}
Expand Down

0 comments on commit c08859d

Please sign in to comment.