Skip to content

Commit

Permalink
use chain_spec_path to detect asset hub polkadot
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and pepoviola committed Nov 10, 2023
1 parent 6ad30b6 commit 13d220d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/packages/orchestrator/src/configGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export async function generateNetworkSpec(

if (config.parachains && config.parachains.length) {
for (const parachain of config.parachains) {
const para: CHAIN = whichChain(parachain.chain || "");
const para: CHAIN = whichChain(parachain.chain || parachain.chain_spec_path || "");

let computedStatePath,
computedStateCommand,
Expand Down
4 changes: 3 additions & 1 deletion javascript/packages/orchestrator/src/spawner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export const spawnNode = async (
const isAssetHubPolkadot =
parachain &&
(parachain.chain?.includes("statemint") ||
parachain.chain?.includes("asset-hub-polkadot"));
parachain.chain?.includes("asset-hub-polkadot") ||
parachain.chainSpecPath?.includes("statemint") ||
parachain.chainSpecPath?.includes("asset-hub-polkadot"));
const keystoreFiles = await generateKeystoreFiles(
node,
nodeFilesPath,
Expand Down

0 comments on commit 13d220d

Please sign in to comment.