Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed May 8, 2020
1 parent 8e89e91 commit 424a4a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions commands/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ module.exports = {
const near = await connect(argv);

switch (argv.epoch) {
case 'current':
await validatorsInfo.showValidatorsTable(near, null);
break;
case 'next':
await validatorsInfo.showNextValidatorsTable(near);
break;
default:
await validatorsInfo.showValidatorsTable(near, argv.epoch);
break;
case 'current':
await validatorsInfo.showValidatorsTable(near, null);
break;
case 'next':
await validatorsInfo.showNextValidatorsTable(near);
break;
default:
await validatorsInfo.showValidatorsTable(near, argv.epoch);
break;
}
})
};
6 changes: 3 additions & 3 deletions utils/validators-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ async function showProposalsTable(near) {
);
});
console.log(proposalsTable.toString());
console.log("Expected seat price is calculated based on observed so far proposals and validators.");
console.log("It can change from new proposals or some validators going offline.");
console.log("Note: this currently doesn't account for offline kickouts and rewards for current epoch");
console.log('Expected seat price is calculated based on observed so far proposals and validators.');
console.log('It can change from new proposals or some validators going offline.');
console.log('Note: this currently doesn\'t account for offline kickouts and rewards for current epoch');
}

module.exports = { showValidatorsTable, showNextValidatorsTable, showProposalsTable };

0 comments on commit 424a4a4

Please sign in to comment.