Skip to content

Commit 454787f

Browse files
EmpieichOhsutaiyu
andauthored
Apply suggestions from code review
Co-authored-by: hsutaiyu <51791408+hsutaiyu@users.noreply.github.com>
1 parent 1020a19 commit 454787f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/zkEVM/architecture/high-level/smart-contracts/exit-roots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
An exit tree is a binary, append-only, sparse Merkle tree (SMT) whose leaf nodes store bridging data. The exit trees have a maximum depth of 32.
1+
An exit tree is a binary, append-only, sparse Merkle tree (SMT) with a maximum depth of 32, where leaf nodes store bridging data.
22

33
The Merkle root of an exit tree is known as the exit tree root, and it is the fingerprint of all the information recorded in the exit tree's leaf nodes.
44

docs/zkEVM/architecture/high-level/smart-contracts/sequencing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The diagram below shows the sequencing workflow for rollup (non-validium) stacks
1313

1414
![Polygon Solidity smart contract architecture](../../../../img/cdk/high-level-architecture/sequencing-flow.png)
1515

16-
## `sequenceBatches()` function
16+
## `sequenceBatches()`
1717

1818
The `sequenceBatches()` function is called on the `PolygonZkEVMEtrog.sol` contract:
1919

@@ -49,7 +49,7 @@ Stepwise, the function does the following:
4949
1. Calls the `PolygonRollupManager.onSequenceBatches(...)` function which waits for an `OnSequenceBatches(...)` event callback.
5050
1. Emits `SequenceBatches(...)` event.
5151

52-
## `onSequenceBatches()` function
52+
## `onSequenceBatches()`
5353

5454
The `onSequenceBatches()` function is called on the `PolygonRollupManager.sol` contract:
5555

@@ -67,7 +67,7 @@ Stepwise, the function does the following:
6767
1. Attempts to consolidate pending state for the rollup by updating `lastVerifiedBatch`, `batchNumToStateRoot[]`, and `lastLocalExitRoot` state variables, and also by updating `globalExitRootManager.updateExitRoot(L2sLocalExitRoot)`, after which it emits a `ConsolidatePendingState(...)` event.
6868
1. Emits an `OnSequenceBatches(...)` event back to the original `sequenceBatches(...)` call.
6969

70-
## `sequenceBatchesValidium()` function
70+
## `sequenceBatchesValidium()`
7171

7272
The `sequenceBatchesValidium()` function is called on the `PolygonValidiumEtrog.sol` contract:
7373

docs/zkEVM/architecture/high-level/smart-contracts/verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The sequence diagram below shows the verification workflow for rollup stacks and
1313

1414
![Polygon Solidity consensus verification flow](../../../../img/cdk/high-level-architecture/verification-flow.png)
1515

16-
## `verifyBatchesTrustedAggregator()` function
16+
## `verifyBatchesTrustedAggregator()`
1717

1818
The `verifyBatchesTrustedAggregator()` function is called on the `PolygonRollupManager` contract:
1919

docs/zkEVM/architecture/high-level/unified-LxLy/bridging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The data below is transaction data (represented by a leaf node in an exit tree)
9393

9494
1. When a batch of transactions is processed, the bridge contract appends the L2 exit tree with a new leaf containing the batch information. This updates the L2 exit tree root.
9595

96-
2. The bridge contract communicates the L2 exit tree root to the L2 global exit root manager. The L2 global exit root manager, however, does not update the global exit tree at this stage.
96+
2. The bridge contract transmits the L2 exit tree root to the L2 global exit root manager. The L2 global exit root manager, however, does not update the global exit tree at this stage.
9797

9898
3. For proving and verification, the zk-proof-generating circuit obtains the L2 exit tree root from the L2 global exit root manager.
9999

docs/zkEVM/architecture/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The underlying protocol in zkEVM ensures that the state transitions are correct
6969

7070
In order to ensure adherence to a set of pre-determined rules for state transitions, the consensus contract deployed on L1, is utilized.
7171
72-
!!!info
72+
!!! info
7373
The consensus contract is currently deployed on both [Ethereum mainnet](https://etherscan.io/address/0x5132A183E9F3CB7C848b0AAC5Ae0c4f0491B7aB2) and [Cardona testnet](https://sepolia.etherscan.io/address/0xa997cfD539E703921fD1e3Cf25b4c241a27a4c7A).
7474
7575
A smart contract verifies the validity proofs to ensure that each transition is completed correctly.

0 commit comments

Comments
 (0)