Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix misleading comment (#92)
Browse files Browse the repository at this point in the history
* fix misleading comment

* fix lint
  • Loading branch information
StanislavBreadless authored Jan 9, 2024
1 parent 8979a4f commit 51f5f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/L1Messenger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ contract L1Messenger is IL1Messenger, ISystemContract {

/// Check State Diffs
/// encoding is as follows:
/// header (1 byte version, 3 bytes total len of compressed, 1 byte enumeration index size, 2 bytes number of initial writes)
/// body (N bytes of initial writes [32 byte derived key || compressed value], M bytes repeated writes [enumeration index || compressed value])
/// header (1 byte version, 3 bytes total len of compressed, 1 byte enumeration index size)
/// body (`compressedStateDiffSize` bytes, 4 bytes number of state diffs, `numberOfStateDiffs` * `STATE_DIFF_ENTRY_SIZE` bytes for the uncompressed state diffs)
/// encoded state diffs: [20bytes address][32bytes key][32bytes derived key][8bytes enum index][32bytes initial value][32bytes final value]
require(
uint256(uint8(bytes1(_totalL2ToL1PubdataAndStateDiffs[calldataPtr]))) ==
Expand Down

0 comments on commit 51f5f0a

Please sign in to comment.