From 752881b545af9ac5e9bbd1093e0ecc8dd8129d61 Mon Sep 17 00:00:00 2001 From: Eugenio Paluello Date: Tue, 22 Oct 2024 12:35:02 +0200 Subject: [PATCH] fix: import --- indexer/src/types/log.ts | 3 +++ indexer/tests/header.test.ts | 7 ++++--- indexer/tests/log.test.ts | 7 ++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/indexer/src/types/log.ts b/indexer/src/types/log.ts index 607c3221a..681e58dc7 100644 --- a/indexer/src/types/log.ts +++ b/indexer/src/types/log.ts @@ -4,6 +4,9 @@ import { padBigint } from "../utils/hex.ts"; // Constants import { IGNORED_KEYS, KAKAROT_ADDRESS, NULL_HASH } from "../constants.ts"; +// Types +import { JsonRpcLog } from "./types.ts"; + // Starknet import { Event, hash } from "../deps.ts"; diff --git a/indexer/tests/header.test.ts b/indexer/tests/header.test.ts index eebb3d35c..54f00f5a0 100644 --- a/indexer/tests/header.test.ts +++ b/indexer/tests/header.test.ts @@ -6,9 +6,10 @@ import { PrefixedHexString, } from "../src/deps.ts"; import { assertEquals } from "https://deno.land/std@0.213.0/assert/assert_equals.ts"; -import { JsonRpcBlock, toEthHeader } from "./header.ts"; -import { DEFAULT_BLOCK_GAS_LIMIT } from "../constants.ts"; -import { padString } from "../utils/hex.ts"; +import { toEthHeader } from "../src/types/header.ts"; +import { JsonRpcBlock } from "../src/types/types.ts"; +import { DEFAULT_BLOCK_GAS_LIMIT } from "../src/constants.ts"; +import { padString } from "../src/utils/hex.ts"; import sinon from "npm:sinon"; import { KAKAROT } from "../src/provider.ts"; import { NULL_HASH } from "../src/constants.ts"; diff --git a/indexer/tests/log.test.ts b/indexer/tests/log.test.ts index 8be9778b2..7f498a5d4 100644 --- a/indexer/tests/log.test.ts +++ b/indexer/tests/log.test.ts @@ -1,7 +1,8 @@ import { assertEquals } from "https://deno.land/std@0.213.0/assert/mod.ts"; -import { fromJsonRpcLog, JsonRpcLog, toEthLog } from "./log.ts"; -import { bigIntToHex, Event, JsonRpcTx } from "../deps.ts"; -import { IGNORED_KEYS, KAKAROT_ADDRESS } from "../constants.ts"; +import { fromJsonRpcLog, toEthLog } from "../src/types/log.ts"; +import { JsonRpcLog } from "../src/types/types.ts"; +import { bigIntToHex, Event, JsonRpcTx } from "../src/deps.ts"; +import { IGNORED_KEYS, KAKAROT_ADDRESS } from "../src/constants.ts"; // Mock for hexToBytes const mockHexToBytes = (hex: string): Uint8Array => {