Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Dec 18, 2023
1 parent c63fe7c commit 627d81c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions packages/engine/paima-funnel/src/funnels/carp/funnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import {
Network,
timeout,
} from '@paima/utils';
import type {
ChainDataExtensionCardanoProjectedNFT} from '@paima/sm';
import type { ChainDataExtensionCardanoProjectedNFT } from '@paima/sm';
import {
type ChainData,
type ChainDataExtension,
Expand Down Expand Up @@ -155,7 +154,7 @@ export class CarpFunnel extends BaseFunnel implements ChainFunnel {
if (extension.cdeType === ChainDataExtensionType.CardanoPool) {
const data = getCdePoolData(
this.carpUrl,
extension ,
extension,
arg.from,
Math.min(arg.to, this.cache.getState().startingSlot - 1),
slot => {
Expand Down
12 changes: 6 additions & 6 deletions packages/engine/paima-runtime/src/cde-config/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import type { ChainDataExtension } from '@paima/sm';
export function getEarliestStartBlockheight(config: ChainDataExtension[]): number {
const minStartBlockheight = config.reduce((min, cde) => {
if (
cde.cdeType !== ChainDataExtensionType.CardanoPool &&
cde.cdeType !== ChainDataExtensionType.CardanoProjectedNFT
) {
cde.cdeType !== ChainDataExtensionType.CardanoPool &&
cde.cdeType !== ChainDataExtensionType.CardanoProjectedNFT
) {
return Math.min(min, cde.startBlockHeight);
}
return min;
Expand All @@ -20,9 +20,9 @@ export function getEarliestStartBlockheight(config: ChainDataExtension[]): numbe
export function getEarliestStartSlot(config: ChainDataExtension[]): number {
const minStartSlot = config.reduce((min, cde) => {
if (
cde.cdeType === ChainDataExtensionType.CardanoPool ||
cde.cdeType === ChainDataExtensionType.CardanoProjectedNFT
) {
cde.cdeType === ChainDataExtensionType.CardanoPool ||
cde.cdeType === ChainDataExtensionType.CardanoProjectedNFT
) {
return Math.min(min, cde.startSlot);
}
return min;
Expand Down

0 comments on commit 627d81c

Please sign in to comment.