Skip to content

Commit

Permalink
removed 0x
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Jan 26, 2024
1 parent 0b04790 commit 43e3ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system-contracts/test/PubdataChunkPublisher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ describe("PubdataChunkPublisher tests", () => {
});

it("Too Much Pubdata", async () => {
const pubdata = "0x" + genRandHex(blobSizeInBytes * maxNumberBlobs + 1);
const pubdata = genRandHex(blobSizeInBytes * maxNumberBlobs + 1);
await expect(
pubdataChunkPublisher.connect(l1MessengerAccount).chunkAndPublishPubdata(pubdata)
).to.be.revertedWith("pubdata should fit in 2 blobs");
});

it("Publish 1 Blob", async () => {
const pubdata = "0x" + genRandHex(blobSizeInBytes);
const pubdata = genRandHex(blobSizeInBytes);
await pubdataChunkPublisher.connect(l1MessengerAccount).chunkAndPublishPubdata(pubdata);
});

it("Publish 2 Blobs", async () => {
const pubdata = "0x" + genRandHex(blobSizeInBytes * maxNumberBlobs);
const pubdata = genRandHex(blobSizeInBytes * maxNumberBlobs);
await pubdataChunkPublisher.connect(l1MessengerAccount).chunkAndPublishPubdata(pubdata);
});
});
Expand Down

0 comments on commit 43e3ecd

Please sign in to comment.