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 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 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 { /********** 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))) 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 /// ``` 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)))