import { BeaconStateAllForks, BeaconStateCache, createCachedBeaconState, createEmptyEpochContextImmutableData, } from "@lodestar/state-transition"; import {IChainForkConfig} from "@lodestar/config"; export function createCachedBeaconStateTest( state: T, chainConfig: IChainForkConfig ): T & BeaconStateCache { return createCachedBeaconState(state, createEmptyEpochContextImmutableData(chainConfig, state)); }