From 41be26164e4e2aba3f19afcfa1508c7958217ce5 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Thu, 19 Dec 2024 12:43:34 +0000 Subject: [PATCH] Update kzg unit test --- packages/beacon-node/test/unit/util/kzg.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/test/unit/util/kzg.test.ts b/packages/beacon-node/test/unit/util/kzg.test.ts index 616505268ae1..681587f4a4af 100644 --- a/packages/beacon-node/test/unit/util/kzg.test.ts +++ b/packages/beacon-node/test/unit/util/kzg.test.ts @@ -45,6 +45,7 @@ describe("C-KZG", () => { afterEachCallbacks.push(() => chain.close()); const slot = 0; + const fork = config.getForkName(slot); const blobs = [generateRandomBlob(), generateRandomBlob()]; const kzgCommitments = blobs.map((blob) => ckzg.blobToKzgCommitment(blob)); @@ -65,7 +66,7 @@ describe("C-KZG", () => { for (const blobSidecar of blobSidecars) { try { - await validateGossipBlobSidecar(chain, blobSidecar, blobSidecar.index); + await validateGossipBlobSidecar(chain, blobSidecar, blobSidecar.index, fork); } catch (_e) { // We expect some error from here // console.log(error);