Skip to content

Commit

Permalink
fix: bad practice
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Jan 27, 2025
1 parent 983d65a commit e1660aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/scripts/keeperBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ async function main() {
// Skip some disputes
disputes = filterDisputesToSkip(disputes);
disputesWithoutJurors = filterDisputesToSkip(disputesWithoutJurors);
for (var dispute of disputes) {
for (const dispute of disputes) {
logger.info(`Dispute #${dispute.id}, round #${dispute.currentRoundIndex}, ${dispute.period} period`);
}
logger.info(`Disputes needing more jurors: ${disputesWithoutJurors.map((dispute) => dispute.id)}`);
Expand Down Expand Up @@ -606,7 +606,7 @@ async function main() {

logger.info(`Current phase: ${PHASES[getNumber(await sortition.phase())]}`);

for (var dispute of disputes) {
for (const dispute of disputes) {
// ----------------------------------------------- //
// PASS PERIOD //
// ----------------------------------------------- //
Expand All @@ -631,7 +631,7 @@ async function main() {
);
logger.info(`Disputes not fully executed: ${unprocessedDisputesInExecution.map((dispute) => dispute.id)}`);

for (var dispute of unprocessedDisputesInExecution) {
for (const dispute of unprocessedDisputesInExecution) {
const { period } = await core.disputes(dispute.id);
if (period !== 4n) {
logger.info(`Skipping dispute #${dispute.id} because it is not in the execution period`);
Expand Down

0 comments on commit e1660aa

Please sign in to comment.