Skip to content

Commit

Permalink
add invulnerables in both collatorSelection and collatorStaking if ar… (
Browse files Browse the repository at this point in the history
#1797)

* add invulnerables in both collatorSelection and collatorStaking if are present

* lint

* typo
  • Loading branch information
pepoviola authored May 14, 2024
1 parent 81cd4e1 commit 315f5ff
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export async function addCollatorSelection(specPath: string, node: Node) {

const { eth_account } = node.accounts;

runtimeConfig.collatorSelection.invulnerables.push(eth_account.address);
if (runtimeConfig.collatorSelection)
runtimeConfig.collatorSelection.invulnerables.push(eth_account.address);
if (runtimeConfig.collatorStaking)
runtimeConfig.collatorStaking.invulnerables.push(eth_account.address);

new CreateLogTable({
colWidths: [30, 20, 70],
Expand Down

0 comments on commit 315f5ff

Please sign in to comment.