Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions contracts/contracts/Staking.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@ 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

**Main functions**

- 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

Expand Down
2 changes: 1 addition & 1 deletion contracts/contracts/l2/gateways/L2CustomERC20Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**********
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// ```

Expand Down
4 changes: 2 additions & 2 deletions prover/contracts/src/PlonkVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)))
Expand Down