Skip to content

Commit

Permalink
chore(ci): fix zombienet tests (#3189)
Browse files Browse the repository at this point in the history
* chore(ci): fix zombienet tests

* add parachainId to script that modifies the chain spec

* fix format
  • Loading branch information
RomarQ authored Feb 10, 2025
1 parent b85ac45 commit 4c9dc6d
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions test/scripts/modify-plain-specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,14 @@ yargs(hideBin(process.argv))
process.stdout.write("Done ✅\n");

plainSpec.bootNodes = [];
if ("runtimeGenesis" in plainSpec.genesis) {
plainSpec.genesis.runtimeGenesis.patch.authorMapping.mappings = [
["5HEL3iLyDyaqmfibHXAXVzyQq4fBqLCHGMEYxZXgRAuhEKXX", ALITH_ADDRESS],
];
// TODO: remove once client 0.44.0 is released
plainSpec.genesis.runtimeGenesis.patch.parachainInfo.parachainId = 1000;

plainSpec.genesis.runtimeGenesis.patch.openTechCommitteeCollective.members = [
ALITH_ADDRESS,
];
} else {
plainSpec.genesis.runtime.authorMapping.mappings = [
["5HEL3iLyDyaqmfibHXAXVzyQq4fBqLCHGMEYxZXgRAuhEKXX", ALITH_ADDRESS],
];
plainSpec.genesis.runtime.openTechCommitteeCollective.members = [ALITH_ADDRESS];
}
plainSpec.genesis.runtimeGenesis.patch.authorMapping.mappings = [
["5HEL3iLyDyaqmfibHXAXVzyQq4fBqLCHGMEYxZXgRAuhEKXX", ALITH_ADDRESS],
];

plainSpec.genesis.runtimeGenesis.patch.openTechCommitteeCollective.members = [ALITH_ADDRESS];

process.stdout.write(`Writing to: ${argv.outputPath} ...`);
await fs.writeFile(
Expand Down

0 comments on commit 4c9dc6d

Please sign in to comment.