From 6e82771ebc0cd3e33b2a74c4d24fcd1046cd6fe5 Mon Sep 17 00:00:00 2001 From: harkamal Date: Fri, 28 Jul 2023 15:00:27 +0530 Subject: [PATCH] fixes --- packages/beacon-node/src/api/impl/beacon/blocks/index.ts | 2 +- .../test/unit/network/beaconBlocksMaybeBlobsByRange.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/src/api/impl/beacon/blocks/index.ts b/packages/beacon-node/src/api/impl/beacon/blocks/index.ts index b624d0de4ba9..06fa968d91f4 100644 --- a/packages/beacon-node/src/api/impl/beacon/blocks/index.ts +++ b/packages/beacon-node/src/api/impl/beacon/blocks/index.ts @@ -210,7 +210,7 @@ export function getBeaconBlockApi({ signedBlobs.map((sblob) => sblob.message), // don't bundle any bytes for block and blobs null, - signedBlobs.map((_sblob) => null) + signedBlobs.map(() => null) ); } else { signedBlock = signedBlockOrContents; diff --git a/packages/beacon-node/test/unit/network/beaconBlocksMaybeBlobsByRange.test.ts b/packages/beacon-node/test/unit/network/beaconBlocksMaybeBlobsByRange.test.ts index b8fc5b8d7b8e..8bc5eef0183e 100644 --- a/packages/beacon-node/test/unit/network/beaconBlocksMaybeBlobsByRange.test.ts +++ b/packages/beacon-node/test/unit/network/beaconBlocksMaybeBlobsByRange.test.ts @@ -96,6 +96,7 @@ describe("beaconBlocksMaybeBlobsByRange", () => { source: BlockSource.byRange, blobs, blockBytes: null, + blobsBytes: blobs.map(() => null), }; });