Skip to content

Commit

Permalink
[node-api/e2e] apply lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed May 13, 2024
1 parent 612cdb6 commit 2aa13b8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/node-api/src/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,14 @@ async function registerAliceBobCharlieAndGoToAttesting(api: ApiPromise, cid: Com
await nextPhase(api, alice);
}

function nextPhase(api: ApiPromise, signer: KeyringPair): Promise<void> {
async function nextPhase(api: ApiPromise, signer: KeyringPair): Promise<void> {
const tx = api.tx['sudo']['sudo'](
api.tx['encointerScheduler']['nextPhase']()
);
return submitAndWatchTx(api, signer, tx)
.then((result) => {
if (result.error !== undefined) {
console.log(`failed to go to next phase: ${JSON.stringify(result)}`);
}
});
let result = await submitAndWatchTx(api, signer, tx);
if (result.error !== undefined) {
console.log(`failed to go to next phase: ${JSON.stringify(result)}`);
}
}

const defaultDemurrage = 2078506789235;
Expand Down

0 comments on commit 2aa13b8

Please sign in to comment.