Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nahuseyoum committed Aug 2, 2024
1 parent c56d835 commit 2fe3d32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ function whichChain(chain_name: string, force_decorator?: string): CHAIN {

return CHAIN.Generic;
}
const aventusDecorators: Decorator = Object.keys(aventus).reduce(
(memo, fn) => {
memo[fn] = (aventus as Decorator)[fn];
const aventusDecorators: Decorator = Object.keys(aventus).reduce((memo, fn) => {
memo[fn] = (aventus as Decorator)[fn];
return memo;
}, Object.create({}));

Expand Down
5 changes: 4 additions & 1 deletion javascript/packages/orchestrator/src/chainSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,10 @@ export async function customizePlainRelayChain(
validatorKeys.push(node.accounts.sr_stash.address);

if (keyType === "session") {
const chain = whichChain(networkSpec.relaychain.chain, networkSpec.relaychain.force_decorator);
const chain = whichChain(
networkSpec.relaychain.chain,
networkSpec.relaychain.force_decorator,
);
const [decoratedGetNodeKey] = decorate(chain, [getNodeKey]);
const key = decoratedGetNodeKey(node);
await addAuthority(specPath, node, key);
Expand Down

0 comments on commit 2fe3d32

Please sign in to comment.