Skip to content

Commit 242ff1a

Browse files
authored
fix: update comment about public input structure (#128)
1 parent b634a1b commit 242ff1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libraries/verifier/ZkEvmVerifierPostEuclid.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ contract ZkEvmVerifierPostEuclid is IZkEvmVerifierV2 {
4949
///
5050
/// @dev Encoding for `publicInput`. And this is exactly the same as `ZkEvmVerifierV2`.
5151
/// ```text
52-
/// | layer2ChainId | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot |
53-
/// | 8 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes |
52+
/// | layer2ChainId | msgQueueHash | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot |
53+
/// | 8 bytes | 32 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes |
5454
/// ```
5555
function verify(bytes calldata bundleProof, bytes calldata publicInput) external view override {
5656
address _verifier = plonkVerifier;

src/libraries/verifier/ZkEvmVerifierPostFeynman.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ contract ZkEvmVerifierPostFeynman is IZkEvmVerifierV2 {
5454
///
5555
/// @dev Encoding for `publicInput`. And this is exactly the same as `ZkEvmVerifierV2`.
5656
/// ```text
57-
/// | layer2ChainId | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot |
58-
/// | 8 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes |
57+
/// | layer2ChainId | msgQueueHash | numBatches | prevStateRoot | prevBatchHash | postStateRoot | batchHash | withdrawRoot |
58+
/// | 8 bytes | 32 bytes | 4 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes | 32 bytes |
5959
/// ```
6060
function verify(bytes calldata bundleProof, bytes calldata publicInput) external view override {
6161
address _verifier = plonkVerifier;

0 commit comments

Comments
 (0)