Skip to content

Commit

Permalink
delete historical data (#63)
Browse files Browse the repository at this point in the history
Co-authored-by: chengwenxi <[email protected]>
  • Loading branch information
chengwenxi and chengwenxi authored Feb 25, 2024
1 parent 57cb9d7 commit 336fb65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/contracts/L1/rollup/Rollup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,9 @@ contract Rollup is OwnableUpgradeable, PausableUpgradeable, IRollup {
}
}
}

delete committedBatchStores[_batchIndex-1];
delete challenges[_batchIndex-1];

emit FinalizeBatch(
_batchIndex,
Expand Down

0 comments on commit 336fb65

Please sign in to comment.