From aa7ac27edb0ead07bf1dda600ba77e0e7c9e5872 Mon Sep 17 00:00:00 2001 From: hoffman Date: Fri, 29 Aug 2025 14:54:19 +0800 Subject: [PATCH 1/6] Update Staking.md --- contracts/contracts/Staking.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/contracts/Staking.md b/contracts/contracts/Staking.md index b657c8114..8faab94dd 100644 --- a/contracts/contracts/Staking.md +++ b/contracts/contracts/Staking.md @@ -115,7 +115,7 @@ The exit lock period should be long enough to ensure that stakers and sequencers **Main functions** -- Update sequencer set, call form l2 staking contract +- Update sequencer set, call from l2 staking contract #### Distribute Contract @@ -123,8 +123,8 @@ The exit lock period should be long enough to ensure that stakers and sequencers - Record delegation info by l2 staking contract - Record undelegation info by l2 staking contract -- Compute delegator's delegation reward, call form l2 staking contract -- Compute sequencer's commission, call form l2 staking contract +- Compute delegator's delegation reward, call from l2 staking contract +- Compute sequencer's commission, call from l2 staking contract #### Gov Contract From 417224a4d4099302c66c1f42b7cbf74ffbc336b7 Mon Sep 17 00:00:00 2001 From: hoffman Date: Fri, 29 Aug 2025 14:54:44 +0800 Subject: [PATCH 2/6] Update BatchHeaderCodecV1.sol --- contracts/contracts/libraries/codec/BatchHeaderCodecV1.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/libraries/codec/BatchHeaderCodecV1.sol b/contracts/contracts/libraries/codec/BatchHeaderCodecV1.sol index 5bda27769..62d7cecf9 100644 --- a/contracts/contracts/libraries/codec/BatchHeaderCodecV1.sol +++ b/contracts/contracts/libraries/codec/BatchHeaderCodecV1.sol @@ -18,7 +18,7 @@ pragma solidity ^0.8.24; /// * sequencerSetVerifyHash 32 bytes32 185 L2 sequencers set verify hash /// * parentBatchHash 32 bytes32 217 The parent batch hash /// -/// @dev Below is the feilds for `BatchHeader` V1 +/// @dev Below is the fields for `BatchHeader` V1 /// * lastBlockNumber 8 uint64 249 The last block number in this batch /// ``` From a38ad21652421cf9d9fdb297983fc894413d5c1d Mon Sep 17 00:00:00 2001 From: hoffman Date: Fri, 29 Aug 2025 14:55:33 +0800 Subject: [PATCH 3/6] Update README.md --- contracts/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/README.md b/contracts/README.md index 2d6f36085..c0fc8adad 100644 --- a/contracts/README.md +++ b/contracts/README.md @@ -79,7 +79,7 @@ yarn test You must have [Echidna](https://github.com/crytic/echidna) installed. -Contracts targetted for Echidna testing are located in `./contracts/echidna`. +Contracts targeted for Echidna testing are located in `./contracts/echidna`. Each target contract is tested with a separate yarn command, for example: ```shell From 9619231aeb4c415d8c17e65444710666507aae5b Mon Sep 17 00:00:00 2001 From: hoffman Date: Fri, 29 Aug 2025 14:56:02 +0800 Subject: [PATCH 4/6] Update L2CustomERC20Gateway.sol --- contracts/contracts/l2/gateways/L2CustomERC20Gateway.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/l2/gateways/L2CustomERC20Gateway.sol b/contracts/contracts/l2/gateways/L2CustomERC20Gateway.sol index 84f2fdba4..6ecd26562 100644 --- a/contracts/contracts/l2/gateways/L2CustomERC20Gateway.sol +++ b/contracts/contracts/l2/gateways/L2CustomERC20Gateway.sol @@ -11,7 +11,7 @@ import {IMorphERC20Upgradeable} from "../../libraries/token/IMorphERC20Upgradeab /// @title L2ERC20Gateway /// @notice The `L2ERC20Gateway` is used to withdraw custom ERC20 compatible tokens on layer 2 and /// finalize deposit the tokens from layer 1. -/// @dev The withdrawn tokens tokens will be burned directly. On finalizing deposit, the corresponding +/// @dev The withdrawn tokens will be burned directly. On finalizing deposit, the corresponding /// tokens will be minted and transferred to the recipient. contract L2CustomERC20Gateway is L2ERC20Gateway { /********** From 162e2f63f0a8e73585c5602a86f1598850bc5857 Mon Sep 17 00:00:00 2001 From: hoffman Date: Fri, 29 Aug 2025 14:56:54 +0800 Subject: [PATCH 5/6] Update BatchHeaderCodecV0.sol --- contracts/contracts/libraries/codec/BatchHeaderCodecV0.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/libraries/codec/BatchHeaderCodecV0.sol b/contracts/contracts/libraries/codec/BatchHeaderCodecV0.sol index e043816a3..c2e646312 100644 --- a/contracts/contracts/libraries/codec/BatchHeaderCodecV0.sol +++ b/contracts/contracts/libraries/codec/BatchHeaderCodecV0.sol @@ -67,7 +67,7 @@ library BatchHeaderCodecV0 { /// @notice Get the number of L1 messages popped before this batch. /// @param batchPtr The start memory offset of the batch header in memory. - /// @return _totalL1MessagePopped The the number of L1 messages popped before this batch. + /// @return _totalL1MessagePopped The number of L1 messages popped before this batch. function getTotalL1MessagePopped(uint256 batchPtr) internal pure returns (uint256 _totalL1MessagePopped) { assembly { _totalL1MessagePopped := shr(192, mload(add(batchPtr, 17))) From 76c8952d86abfdd7409adaa5e10263aa020a888a Mon Sep 17 00:00:00 2001 From: hoffman Date: Fri, 29 Aug 2025 15:03:34 +0800 Subject: [PATCH 6/6] Update PlonkVerifier.sol --- prover/contracts/src/PlonkVerifier.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prover/contracts/src/PlonkVerifier.sol b/prover/contracts/src/PlonkVerifier.sol index 947b9a5eb..d0cf26669 100644 --- a/prover/contracts/src/PlonkVerifier.sol +++ b/prover/contracts/src/PlonkVerifier.sol @@ -260,7 +260,7 @@ contract PlonkVerifier { } /// Called when one the openings is bigger than r - /// The openings are the claimed evalutions of a polynomial + /// The openings are the claimed evaluations of a polynomial /// in a Kzg proof. function error_proof_openings_size() { let ptError := mload(0x40) @@ -805,7 +805,7 @@ contract PlonkVerifier { // derive a random number. As there is no random generator, we // do an FS like challenge derivation, depending on both digests and - // ζ to ensure that the prover cannot control the random numger. + // ζ to ensure that the prover cannot control the random number. // Note: adding the other point ζω is not needed, as ω is known beforehand. mstore(mPtr, mload(add(state, STATE_FOLDED_DIGESTS_X))) mstore(add(mPtr, 0x20), mload(add(state, STATE_FOLDED_DIGESTS_Y)))