Skip to content

Commit

Permalink
Merge pull request #18 from init4tech/anna/zero-sequencer
Browse files Browse the repository at this point in the history
ensure sequencer is not zero address
  • Loading branch information
anna-carroll authored May 7, 2024
2 parents 14bf33c + a2f214f commit e9abe3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zenith.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ contract Zenith is Passage, AccessControlDefaultAdminRules {
address sequencer = ecrecover(blockCommit, v, r, s);

// assert that signature is valid && sequencer is permissioned
if (!hasRole(SEQUENCER_ROLE, sequencer)) revert BadSignature(sequencer);
if (sequencer == address(0) || !hasRole(SEQUENCER_ROLE, sequencer)) revert BadSignature(sequencer);

// assert this is the first rollup block submitted for this host block
if (lastSubmittedAtBlock[header.rollupChainId] == block.number) revert OneRollupBlockPerHostBlock();
Expand Down

0 comments on commit e9abe3f

Please sign in to comment.