We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14bf33c + a2f214f commit e9abe3fCopy full SHA for e9abe3f
src/Zenith.sol
@@ -120,7 +120,7 @@ contract Zenith is Passage, AccessControlDefaultAdminRules {
120
address sequencer = ecrecover(blockCommit, v, r, s);
121
122
// assert that signature is valid && sequencer is permissioned
123
- if (!hasRole(SEQUENCER_ROLE, sequencer)) revert BadSignature(sequencer);
+ if (sequencer == address(0) || !hasRole(SEQUENCER_ROLE, sequencer)) revert BadSignature(sequencer);
124
125
// assert this is the first rollup block submitted for this host block
126
if (lastSubmittedAtBlock[header.rollupChainId] == block.number) revert OneRollupBlockPerHostBlock();
0 commit comments