Skip to content

Commit

Permalink
fix para id error (#21) (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingryan committed Dec 26, 2021
1 parent 0a1ff0f commit 9c4ac6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ const generateParachainGenesisFile = (
spec.bootNodes = [];

// Replace `paraId` and `parachainId` with the specified parachain-id.
spec.paraId = id;
if (spec.para_id) {
spec.para_id = id;
} else {
spec.paraId = id;
}
const runtime = spec.genesis.runtime;
if (runtime) {
runtime.parachainInfo.parachainId = id;
Expand Down

0 comments on commit 9c4ac6a

Please sign in to comment.