Skip to content

Commit

Permalink
ensure sequencer is not zero address
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-carroll committed May 5, 2024
1 parent 14bf33c commit a2f214f
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 a2f214f

Please sign in to comment.