From 5d0ba07b85f2225791058736b74d5d8fa5b1272a Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Wed, 18 Sep 2024 15:27:52 +0700 Subject: [PATCH] fix: export toMemoryEfficientHexStr() --- .../perf/chain/stateCache/updateUnfinalizedPubkeys.test.ts | 3 +-- packages/state-transition/src/index.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/beacon-node/test/perf/chain/stateCache/updateUnfinalizedPubkeys.test.ts b/packages/beacon-node/test/perf/chain/stateCache/updateUnfinalizedPubkeys.test.ts index 7a06001477b..eab66d2bee5 100644 --- a/packages/beacon-node/test/perf/chain/stateCache/updateUnfinalizedPubkeys.test.ts +++ b/packages/beacon-node/test/perf/chain/stateCache/updateUnfinalizedPubkeys.test.ts @@ -5,9 +5,8 @@ import {digest} from "@chainsafe/as-sha256"; import {SecretKey} from "@chainsafe/blst"; import {PubkeyIndexMap} from "@chainsafe/pubkey-index-map"; import {ValidatorIndex, ssz} from "@lodestar/types"; -import {type CachedBeaconStateAllForks} from "@lodestar/state-transition"; +import {type CachedBeaconStateAllForks, toMemoryEfficientHexStr} from "@lodestar/state-transition"; import {bytesToBigInt, intToBytes} from "@lodestar/utils"; -import {toMemoryEfficientHexStr} from "@lodestar/state-transition/lib/cache/pubkeyCache.js"; import {InMemoryCheckpointStateCache, BlockStateCacheImpl} from "../../../../src/chain/stateCache/index.js"; import {BlockStateCache} from "../../../../src/chain/stateCache/types.js"; import {generateCachedElectraState} from "../../../utils/state.js"; diff --git a/packages/state-transition/src/index.ts b/packages/state-transition/src/index.ts index 6a4d52916c6..600bbf17346 100644 --- a/packages/state-transition/src/index.ts +++ b/packages/state-transition/src/index.ts @@ -41,6 +41,7 @@ export { EpochCacheError, EpochCacheErrorCode, } from "./cache/epochCache.js"; +export {toMemoryEfficientHexStr} from "./cache/pubkeyCache.js"; export {type EpochTransitionCache, beforeProcessEpoch} from "./cache/epochTransitionCache.js"; // Aux data-structures