Skip to content

Commit

Permalink
fix: log typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mani Brar authored and Mani Brar committed Jan 2, 2025
1 parent 590f6ff commit 7a6aee7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bridger-cli/src/utils/botEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export enum BotEvents {
// Claim state
CLAIMING = "claiming",
CHALLENGER_WON_CLAIM = "challenger_won_claim",
VERFICATION_CANT_START = "verification_cant_started",
VERIFICATION_CANT_START = "verification_cant_started",
CANT_VERIFY_SNAPSHOT = "cant_verify_snapshot",
CLAIM_CHALLENGED = "claim_challenged",
STARTING_VERIFICATION = "starting_verification",
Expand Down
2 changes: 1 addition & 1 deletion bridger-cli/src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const configurableInitialize = (emitter: EventEmitter) => {
emitter.on(BotEvents.STARTING_VERIFICATION, (epoch: number) => {
console.log(`Starting verification for epoch ${epoch}`);
});
emitter.on(BotEvents.VERFICATION_CANT_START, (time) => {
emitter.on(BotEvents.VERIFICATION_CANT_START, (time) => {
console.log(`Waiting for sequencer delay to pass to start verification, seconds left: ${time}`);
});

Expand Down
2 changes: 1 addition & 1 deletion bridger-cli/src/utils/transactionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class TransactionHandler {
latestBlockTimestamp - this.claim.timestampClaimed - bridgeConfig.sequencerDelayLimit - bridgeConfig.epochPeriod;

if (timeOver < 0) {
this.emitter.emit(BotEvents.VERFICATION_CANT_START, -1 * timeOver);
this.emitter.emit(BotEvents.VERIFICATION_CANT_START, -1 * timeOver);
return;
}
const estimateGas = await this.veaOutbox.estimateGas.startVerification(this.epoch, this.claim);
Expand Down

0 comments on commit 7a6aee7

Please sign in to comment.