Skip to content

Commit

Permalink
chore: update naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd committed Feb 26, 2024
1 parent ea55612 commit eb9334a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { SlotCommitment } from "@iota/sdk-nova";
import { IResponse } from "../../IResponse";

export enum SlotCommitmentStatus {
COMMITTED = "committed",
FINALIZED = "finalized",
Committed = "committed",
Finalized = "finalized",
}

export interface ISlotCommitmentWrapper {
Expand Down
4 changes: 2 additions & 2 deletions api/src/services/nova/feed/novaFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class NovaFeed {
if (!this.latestSlotCommitmentCache.map((commitment) => commitment.slotCommitment.slot).includes(newSlotCommitment.slot)) {
this.latestSlotCommitmentCache.unshift({
slotCommitment: newSlotCommitment,
status: isFinalized ? SlotCommitmentStatus.FINALIZED : SlotCommitmentStatus.COMMITTED,
status: isFinalized ? SlotCommitmentStatus.Finalized : SlotCommitmentStatus.Committed,
});

if (this.latestSlotCommitmentCache.length > LATEST_SLOT_COMMITMENT_LIMIT) {
Expand All @@ -214,7 +214,7 @@ export class NovaFeed {
);

if (commitmentToUpdate) {
commitmentToUpdate.status = SlotCommitmentStatus.FINALIZED;
commitmentToUpdate.status = SlotCommitmentStatus.Finalized;
}
}
}
Expand Down

0 comments on commit eb9334a

Please sign in to comment.