Skip to content

Commit

Permalink
Fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Feb 22, 2024
1 parent d36ce9a commit 9e1059a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions l1-contracts/contracts/zksync/facets/Executor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,11 @@ contract ExecutorFacet is Base, IExecutor {
if (logKey == uint256(SystemLogKey.L2_TO_L1_LOGS_TREE_ROOT_KEY)) {
require(logSender == L2_TO_L1_MESSENGER_SYSTEM_CONTRACT_ADDR, "lm");
l2LogsTreeRoot = logValue;
} else if (
logKey == uint256(SystemLogKey.TOTAL_L2_TO_L1_PUBDATA_KEY) &&
s.feeParams.pubdataPricingMode == PubdataPricingMode.Rollup
) {
require(logSender == L2_TO_L1_MESSENGER_SYSTEM_CONTRACT_ADDR, "ln");
require(providedL2ToL1PubdataHash == logValue, "wp");
} else if (logKey == uint256(SystemLogKey.TOTAL_L2_TO_L1_PUBDATA_KEY)) {
if (s.feeParams.pubdataPricingMode == PubdataPricingMode.Rollup) {
require(logSender == L2_TO_L1_MESSENGER_SYSTEM_CONTRACT_ADDR, "ln");
require(providedL2ToL1PubdataHash == logValue, "wp");
}
} else if (logKey == uint256(SystemLogKey.STATE_DIFF_HASH_KEY)) {
require(logSender == L2_TO_L1_MESSENGER_SYSTEM_CONTRACT_ADDR, "lb");
stateDiffHash = logValue;
Expand Down

0 comments on commit 9e1059a

Please sign in to comment.