Skip to content

Commit

Permalink
fix(commitBatches): removed unnecessary require
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Jan 24, 2024
1 parent abcbaf3 commit 2aeb40a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion l1-contracts/contracts/zksync/facets/Executor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ contract ExecutorFacet is Base, IExecutor {
require(_newBatchesData.length == 1, "e4");
// Check that we commit batches after last committed batch
require(s.storedBatchHashes[s.totalBatchesCommitted] == _hashStoredBatchInfo(_lastCommittedBatchData), "i"); // incorrect previous batch data
require(_newBatchesData.length > 0, "No batches to commit");

bytes32 systemContractsUpgradeTxHash = s.l2SystemContractsUpgradeTxHash;
// Upgrades are rarely done so we optimize a case with no active system contracts upgrade.
Expand Down

0 comments on commit 2aeb40a

Please sign in to comment.