Skip to content

Commit

Permalink
support parachain which doesn't have key command (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingryan committed Apr 6, 2022
1 parent 8372025 commit f0fd382
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ const generate = async (config: Config, { output, yes }: { output: string; yes:
if (!config?.relaychain?.chain) {
return fatal('Missing relaychain.chain');
}
if (!config?.relaychain?.image) {
return fatal('Missing relaychain.image');
}

const relaychainGenesisFilePath = path.join(output, `${config.relaychain.chain}.json`);
checkOverrideFile(relaychainGenesisFilePath, yes);
Expand Down Expand Up @@ -494,7 +497,7 @@ const generate = async (config: Config, { output, yes }: { output: string; yes:
for (const parachain of config.parachains) {
let nodeIdx = 0;

const { key: nodeKey, address: nodeAddress } = generateNodeKey(parachain.image);
const { key: nodeKey, address: nodeAddress } = generateNodeKey(config.relaychain.image);
const volumePath = parachain.volumePath || '/data';

for (const parachainNode of parachain.nodes) {
Expand Down

0 comments on commit f0fd382

Please sign in to comment.