Skip to content

Commit

Permalink
refactor(protocol): apply small gas optimization (#17508)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Jun 7, 2024
1 parent fe4926c commit c98dc4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contracts/L1/libs/LibUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ library LibUtils {
{
if (_state.transitions[_slot][1].key == _parentHash) {
tid_ = 1;
if (tid_ >= _blk.nextTransitionId) revert L1_UNEXPECTED_TRANSITION_ID();
} else {
tid_ = _state.transitionIds[_blk.blockId][_parentHash];
if (tid_ != 0 && tid_ >= _blk.nextTransitionId) revert L1_UNEXPECTED_TRANSITION_ID();
}

if (tid_ >= _blk.nextTransitionId) revert L1_UNEXPECTED_TRANSITION_ID();
}

function isPostDeadline(
Expand Down

0 comments on commit c98dc4a

Please sign in to comment.