Skip to content

Commit

Permalink
Merge branch 'main' into addtl_int_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored Feb 15, 2023
2 parents cffc440 + edbdd3d commit 4f8c77e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ library LibProposing {

if (state.commits[msg.sender][commitSlot] == hash)
revert L1_COMMITTED();

state.commits[msg.sender][commitSlot] = hash;

emit BlockCommitted({
Expand Down Expand Up @@ -235,12 +236,6 @@ library LibProposing {
commitHash: commitHash
})
) revert L1_NOT_COMMITTED();

if (meta.commitSlot == 0) {
// Special handling of slot 0 for refund; non-zero slots
// are supposed to managed by node software for reuse.
delete state.commits[msg.sender][meta.commitSlot];
}
}

function _validateMetadata(
Expand Down

0 comments on commit 4f8c77e

Please sign in to comment.