diff --git a/javascript/packages/orchestrator/src/configGenerator.ts b/javascript/packages/orchestrator/src/configGenerator.ts index 5a2c5f5dc..9156d1d46 100644 --- a/javascript/packages/orchestrator/src/configGenerator.ts +++ b/javascript/packages/orchestrator/src/configGenerator.ts @@ -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, diff --git a/javascript/packages/orchestrator/src/spawner.ts b/javascript/packages/orchestrator/src/spawner.ts index f631ef0de..b3e6857c9 100644 --- a/javascript/packages/orchestrator/src/spawner.ts +++ b/javascript/packages/orchestrator/src/spawner.ts @@ -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,