Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Mar 18, 2024
1 parent 9e0bdd7 commit c8ca410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 1 addition & 5 deletions packages/state-transition/src/cache/epochCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,7 @@ export class EpochCache {
*/
static createFromState(
state: BeaconStateAllForks,
{
config,
finalizedPubkey2index,
finalizedIndex2pubkey,
}: EpochCacheImmutableData,
{config, finalizedPubkey2index, finalizedIndex2pubkey}: EpochCacheImmutableData,
opts?: EpochCacheOpts
): EpochCache {
// syncPubkeys here to ensure EpochCacheImmutableData is popualted before computing the rest of caches
Expand Down
10 changes: 8 additions & 2 deletions packages/state-transition/test/utils/testFileCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export async function getNetworkCachedState(

if (fs.existsSync(filepath)) {
const stateSsz = fs.readFileSync(filepath);
return createFinalizedCachedBeaconStateTest(config.getForkTypes(slot).BeaconState.deserializeToViewDU(stateSsz), config);
return createFinalizedCachedBeaconStateTest(
config.getForkTypes(slot).BeaconState.deserializeToViewDU(stateSsz),
config
);
} else {
const stateSsz = await tryEach([
() => downloadTestFile(fileId),
Expand All @@ -59,7 +62,10 @@ export async function getNetworkCachedState(
]);

fs.writeFileSync(filepath, stateSsz);
return createFinalizedCachedBeaconStateTest(config.getForkTypes(slot).BeaconState.deserializeToViewDU(stateSsz), config);
return createFinalizedCachedBeaconStateTest(
config.getForkTypes(slot).BeaconState.deserializeToViewDU(stateSsz),
config
);
}
}

Expand Down

0 comments on commit c8ca410

Please sign in to comment.