From a2f214fc8fe0f88824948c368ca9781be55e93f8 Mon Sep 17 00:00:00 2001 From: Anna Carroll Date: Sun, 5 May 2024 16:29:09 -0500 Subject: [PATCH] ensure sequencer is not zero address --- src/Zenith.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zenith.sol b/src/Zenith.sol index 2e5af99..8ef504e 100644 --- a/src/Zenith.sol +++ b/src/Zenith.sol @@ -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();