Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AmbientTea committed Feb 21, 2025
1 parent 529b22d commit 7c6cb68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions toolkit/partner-chains-cli/src/create_chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ impl CreateChainSpecCmd {
let initial_authorities = config
.initial_permissioned_candidates_parsed
.iter()
.map(|c| {
json!({
.map(|c| -> anyhow::Result<serde_json::Value> {
Ok(json!({
"Permissioned": {
"id": serde_json::to_value(c.sidechain).unwrap(),
"id": serde_json::to_value(c.sidechain)?,
"keys": c.session_keys()
}
})
}))
})
.collect::<Vec<serde_json::Value>>();
.collect::<Result<Vec<serde_json::Value>, _>>()?;
let initial_authorities = serde_json::Value::Array(initial_authorities);
Self::update_field(
&mut chain_spec,
Expand Down

0 comments on commit 7c6cb68

Please sign in to comment.