Skip to content

Commit

Permalink
Applied suggested corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Nov 26, 2024
1 parent b2e4e18 commit 39709b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/sdk/src/reference_docs/chain_spec_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ substrate-wasm-builder = { optional = true, workspace = true, default-features =

[dev-dependencies]
chain-spec-builder = { workspace = true, default-features = true }
cmd_lib.workspace = true
cmd_lib = { workspace = true }
sc-chain-spec = { workspace = true, default-features = true }

[features]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ macro_rules! bash(

fn get_chain_spec_builder_path() -> &'static str {
run_cmd!(
cargo build --release -p staging-chain-spec-builder --bin chain-spec-builder
cargo build --release -p staging-chain-spec-builder --bin chain-spec-builder;
export WASM_FILE_PATH=$WASM_FILE_PATH
).expect("Failed to execute command");
CHAIN_SPEC_BUILDER_PATH
}
Expand Down Expand Up @@ -128,7 +129,7 @@ fn generate_chain_spec() {
fn generate_para_chain_spec() {

let output = bash!(
chain-spec-builder -c /dev/stdout create -c polkadot -p 1000 -r WASM_FILE_PATH named-preset preset_2
chain-spec-builder -c /dev/stdout create -c polkadot -p 1000 -r $WASM_FILE_PATH named-preset preset_2
);
let mut output: serde_json::Value = serde_json::from_slice(&output.as_bytes()).unwrap();
//remove code field for better readability
Expand Down

0 comments on commit 39709b7

Please sign in to comment.