From 7d9f4bf4f1e11cbf930bd73490129bcb0393b7f1 Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Tue, 14 Feb 2023 21:28:31 +0800 Subject: [PATCH] Update LibProposing.sol --- packages/protocol/contracts/L1/libs/LibProposing.sol | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/protocol/contracts/L1/libs/LibProposing.sol b/packages/protocol/contracts/L1/libs/LibProposing.sol index 5ecb8e9369e..3ce587aff3c 100644 --- a/packages/protocol/contracts/L1/libs/LibProposing.sol +++ b/packages/protocol/contracts/L1/libs/LibProposing.sol @@ -236,17 +236,6 @@ library LibProposing { commitHash: commitHash }) ) revert L1_NOT_COMMITTED(); - - if (meta.commitSlot % 2 == 0) { - // Using an even number as the commit slot will - // make the corresponding block proposal cheaper - // as the commit record will be deleted when the - // block is proposed; - // Using an odd number will allow new commits to - // reuse a previous commit's storage thus new - // commits are cheaper. - delete state.commits[msg.sender][meta.commitSlot]; - } } function _validateMetadata(