Skip to content

Commit

Permalink
Change chack to higher or equal
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Oct 8, 2024
1 parent a105e83 commit 85b4b49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ contract ExecutorFacet is ZkSyncHyperchainBase, IExecutor {
bytes32[] memory blobCommitments = new bytes32[](MAX_NUMBER_OF_BLOBS);
if (pricingMode == PubdataPricingMode.Validium) {

// In this scenario, pubdataCommitments has the data of the commitment and the pubdataSource, so the len should be higher than 1
require(_newBatch.pubdataCommitments.length > 1, "EF: v0l");
// In this scenario, pubdataCommitments has the data of the commitment and the pubdataSource, so the len should be higher or equal than 1
require(_newBatch.pubdataCommitments.length >= 1, "EF: v0l");
for (uint8 i = uint8(SystemLogKey.BLOB_ONE_HASH_KEY); i <= uint8(SystemLogKey.BLOB_SIX_HASH_KEY); i++) {
logOutput.blobHashes[i - uint8(SystemLogKey.BLOB_ONE_HASH_KEY)] = bytes32(0);
}
Expand Down

0 comments on commit 85b4b49

Please sign in to comment.