Skip to content

Commit

Permalink
fix(protocol): fix msg.sender == first_proposer bug (#16605)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Apr 3, 2024
1 parent 4cda96c commit b019975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ library LibProposing {
if (_slotB.numBlocks == 1) {
// Only proposer_one can propose the first block after genesis
address proposerOne = _resolver.resolve("proposer_one", true);
if (proposerOne != address(0) && msg.sender != proposerOne) {
return false;
if (proposerOne != address(0)) {
return msg.sender == proposerOne;
}
}

Expand Down

0 comments on commit b019975

Please sign in to comment.