Skip to content

Commit

Permalink
paras: support for injecting parachainId into RuntimeGenesisConfigPat…
Browse files Browse the repository at this point in the history
…ch (#1406)

* paras: support for injecting parachainId into RuntimeGenesisConfigPatch

* prettier
  • Loading branch information
michalkucharczyk authored Oct 11, 2023
1 parent b1f1f27 commit 0a18cd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions javascript/packages/orchestrator/src/paras.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ export async function generateParachainFiles(
if (plainData.relay_chain) plainData.relay_chain = relayChainSpec.id;
if (plainData.genesis.runtime?.parachainInfo?.parachainId)
plainData.genesis.runtime.parachainInfo.parachainId = parachain.id;
else if (
plainData.genesis.runtimeGenesisConfigPatch?.parachainInfo?.parachainId
)
plainData.genesis.runtimeGenesisConfigPatch.parachainInfo.parachainId =
parachain.id;

writeChainSpec(chainSpecFullPathPlain, plainData);

Expand Down

0 comments on commit 0a18cd4

Please sign in to comment.