Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fix
  • Loading branch information
gupnik committed May 22, 2024
commit 19a1d85ce83dd0cd2de2fed5df2a1f4ce6e75834
2 changes: 1 addition & 1 deletion substrate/bin/utils/chain-spec-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub fn generate_chain_spec_for_runtime(cmd: &CreateCmd) -> Result<String, String
.map_err(|e| format!("wasm blob shall be readable {e}"))?;

let chain_type = sc_chain_spec::ChainType::from_str(&cmd.chain_type[..])
.map_err(|_| format!("chain type should be valid"))?;
.map_err(|_| "chain type should be valid".to_string())?;

let builder = GenericChainSpec::<()>::builder(&code[..], Default::default())
.with_name(&cmd.chain_name[..])
Expand Down