Skip to content

Commit

Permalink
fix logic for build raw
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Oct 27, 2023
1 parent d1faf8e commit aa16d8c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions javascript/packages/orchestrator/src/configGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ export async function generateNetworkSpec(
.chain_spec_command
? config.relaychain.chain_spec_command
: DEFAULT_CHAIN_SPEC_COMMAND.replace(
"{{chainName}}",
networkSpec.relaychain.chain,
).replace("{{DEFAULT_COMMAND}}", networkSpec.relaychain.defaultCommand);
"{{DEFAULT_COMMAND}}",
networkSpec.relaychain.defaultCommand,
);
}

const relayChainBootnodes: string[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export async function setupChainSpec(
"/" +
DEFAULT_CHAIN_SPEC.replace(/{{chainName}}/gi, chainName);

const fullCommand = `${chainSpecCommand} > ${plainChainSpecOutputFilePath}`;
const fullCommand = `${chainSpecCommand.replace(
/{{chainName}}/gi,
chainName,
)} > ${plainChainSpecOutputFilePath}`;
const node = await createTempNodeDef(
"temp",
defaultImage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export async function setupChainSpec(
"/" +
DEFAULT_CHAIN_SPEC.replace(/{{chainName}}/gi, chainName);
// set output of command
const fullCommand = `${chainSpecCommand} > ${plainChainSpecOutputFilePath}`;
const fullCommand = `${chainSpecCommand.replace(
/{{chainName}}/gi,
chainName,
)} > ${plainChainSpecOutputFilePath}`;
const node = await createTempNodeDef(
"temp",
defaultImage,
Expand Down

0 comments on commit aa16d8c

Please sign in to comment.