From 10b6bd49e551788582268af989b287a86b84ee5b Mon Sep 17 00:00:00 2001 From: invocamanman Date: Wed, 22 May 2024 07:00:30 +0200 Subject: [PATCH] clean --- contracts/v2/PolygonRollupManager.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/v2/PolygonRollupManager.sol b/contracts/v2/PolygonRollupManager.sol index aff35c4db..487df0927 100644 --- a/contracts/v2/PolygonRollupManager.sol +++ b/contracts/v2/PolygonRollupManager.sol @@ -852,21 +852,21 @@ contract PolygonRollupManager is RollupData storage rollup = rollupIDToRollupData[rollupID]; uint64 lastBatchSequenced = rollup.lastBatchSequenced; - // Sequence to rollback should already sequenced + // Batch to rollback should be already sequenced if (batchToRollback >= lastBatchSequenced) { revert RollbackBatchIsNotSequenced(); } uint64 currentBatch = lastBatchSequenced; - // delete sequences + // delete sequence batches structs until the batchToRollback while (currentBatch != batchToRollback) { // Load previous end of sequence batch currentBatch = rollup .sequencedBatches[currentBatch] .previousLastBatchSequenced; - // If batch to rollback was not end of sequence revert + // Batch to rollback must be end of a sequence if (currentBatch < batchToRollback) { revert RollbackBatchIsNotEndOfSequence(); }