Skip to content

Commit

Permalink
Update kzg unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Dec 19, 2024
1 parent aa8a218 commit 41be261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/beacon-node/test/unit/util/kzg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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);
Expand Down

0 comments on commit 41be261

Please sign in to comment.