Skip to content

Commit

Permalink
fix numbers in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitastupin-matterlabs committed Nov 1, 2024
1 parent e0b4e00 commit 75c3fff
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ contract ExecutorFacet is ZKChainBase, IExecutor {
}
}

// We only require 8 logs to be checked, the 9th is if we are expecting a protocol upgrade
// Without the protocol upgrade we expect 8 logs: 2^8 - 1 = 255
// With the protocol upgrade we expect 9 logs: 2^9 - 1 = 511
// We only require 7 logs to be checked, the 8th is if we are expecting a protocol upgrade
// Without the protocol upgrade we expect 7 logs: 2^7 - 1 = 127
// With the protocol upgrade we expect 8 logs: 2^8 - 1 = 255
if (_expectedSystemContractUpgradeTxHash == bytes32(0)) {
if (processedLogs != 127) {
revert MissingSystemLogs(127, processedLogs);
Expand Down

0 comments on commit 75c3fff

Please sign in to comment.