Group typo fixes #2 (#5561)

Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2025-04-02 12:10:26 +02:00
parent 738adf0dc7
commit acaa5975dd
14 changed files with 33 additions and 41 deletions

View File

@ -21,7 +21,7 @@ pragma solidity ^0.8.20;
* - `paymasterData` (`bytes`): Data for paymaster (only if paymaster exists)
* - `signature` (`bytes`): Data passed into the account to verify authorization
*
* When passed to on-chain contacts, the following packed version is used.
* When passed to on-chain contracts, the following packed version is used.
* - `sender` (`address`)
* - `nonce` (`uint256`)
* - `initCode` (`bytes`): concatenation of factory address and factoryData (or empty)
@ -164,13 +164,13 @@ interface IEntryPoint is IEntryPointNonces, IEntryPointStake {
/**
* @dev Executes a batch of user operations.
* @param beneficiary Address to which gas is refunded up completing the execution.
* @param beneficiary Address to which gas is refunded upon completing the execution.
*/
function handleOps(PackedUserOperation[] calldata ops, address payable beneficiary) external;
/**
* @dev Executes a batch of aggregated user operations per aggregator.
* @param beneficiary Address to which gas is refunded up completing the execution.
* @param beneficiary Address to which gas is refunded upon completing the execution.
*/
function handleAggregatedOps(
UserOpsPerAggregator[] calldata opsPerAggregator,

View File

@ -15,7 +15,7 @@ uint256 constant MODULE_TYPE_HOOK = 4;
interface IERC7579Module {
/**
* @dev This function is called by the smart account during installation of the module
* @param data arbitrary data that may be required on the module during `onInstall` initialization
* @param data arbitrary data that may be passed to the module during `onInstall` initialization
*
* MUST revert on error (e.g. if module is already enabled)
*/
@ -23,7 +23,7 @@ interface IERC7579Module {
/**
* @dev This function is called by the smart account during uninstallation of the module
* @param data arbitrary data that may be required on the module during `onUninstall` de-initialization
* @param data arbitrary data that may be passed to the module during `onUninstall` de-initialization
*
* MUST revert on error
*/
@ -186,7 +186,7 @@ interface IERC7579ModuleConfig {
* @dev Installs a Module of a certain type on the smart account
* @param moduleTypeId the module type ID according to the ERC-7579 spec
* @param module the module address
* @param initData arbitrary data that may be required on the module during `onInstall`
* @param initData arbitrary data that may be passed to the module during `onInstall`
* initialization.
*
* MUST implement authorization control
@ -200,8 +200,8 @@ interface IERC7579ModuleConfig {
* @dev Uninstalls a Module of a certain type on the smart account
* @param moduleTypeId the module type ID according the ERC-7579 spec
* @param module the module address
* @param deInitData arbitrary data that may be required on the module during `onInstall`
* initialization.
* @param deInitData arbitrary data that may be passed to the module during `onUninstall`
* deinitialization.
*
* MUST implement authorization control
* MUST call `onUninstall` on the module with the `deInitData` parameter if provided
@ -214,7 +214,7 @@ interface IERC7579ModuleConfig {
* @dev Returns whether a module is installed on the smart account
* @param moduleTypeId the module type ID according the ERC-7579 spec
* @param module the module address
* @param additionalContext arbitrary data that may be required to determine if the module is installed
* @param additionalContext arbitrary data that may be passed to determine if the module is installed
*
* MUST return true if the module is installed and false otherwise
*/

View File

@ -5,10 +5,10 @@ pragma solidity ^0.8.20;
import {AccessControl} from "../../../access/AccessControl.sol";
contract AccessControlModified is AccessControl {
error AccessControlNonRevokable();
error AccessControlNonRevocable();
// Override the revokeRole function
function revokeRole(bytes32, address) public pure override {
revert AccessControlNonRevokable();
revert AccessControlNonRevocable();
}
}

View File

@ -4,7 +4,7 @@ pragma solidity ^0.8.20;
import {ERC20} from "../../token/ERC20/ERC20.sol";
// contract that replicate USDT (0xdac17f958d2ee523a2206206994597c13d831ec7) approval behavior
// contract that replicates USDT (0xdac17f958d2ee523a2206206994597c13d831ec7) approval behavior
abstract contract ERC20ForceApproveMock is ERC20 {
function approve(address spender, uint256 amount) public virtual override returns (bool) {
require(amount == 0 || allowance(msg.sender, spender) == 0, "USDT approval failure");

View File

@ -39,8 +39,7 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
* Both values are immutable: they can only be set once during construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;

View File

@ -7,11 +7,11 @@ This set of interfaces, contracts, and utilities are all related to the https://
TIP: For an overview of ERC-20 tokens and a walk through on how to create a token contract read our xref:ROOT:erc20.adoc[ERC-20 guide].
There are a few core contracts that implement the behavior specified in the ERC:
There are a few core contracts that implement the behavior specified in the ERC-20 standard:
* {IERC20}: the interface all ERC-20 implementations should conform to.
* {IERC20Metadata}: the extended ERC-20 interface including the <<ERC20-name,`name`>>, <<ERC20-symbol,`symbol`>> and <<ERC20-decimals,`decimals`>> functions.
* {ERC20}: the implementation of the ERC-20 interface, including the <<ERC20-name,`name`>>, <<ERC20-symbol,`symbol`>> and <<ERC20-decimals,`decimals`>> optional standard extension to the base interface.
* {IERC20Metadata}: the extended ERC-20 interface including the <<ERC20-name--,`name`>>, <<ERC20-symbol--,`symbol`>> and <<ERC20-decimals--,`decimals`>> functions.
* {ERC20}: the implementation of the ERC-20 interface, including the <<ERC20-name--,`name`>>, <<ERC20-symbol--,`symbol`>> and <<ERC20-decimals--,`decimals`>> optional extensions to the standard interface.
Additionally there are multiple custom extensions, including:
@ -30,9 +30,9 @@ Finally, there are some utilities to interact with ERC-20 contracts in various w
* {SafeERC20}: a wrapper around the interface that eliminates the need to handle boolean return values.
Other utilities that support ERC-20 assets can be found in codebase:
Other utilities that support ERC-20 assets can be found in the codebase:
* ERC-20 tokens can be timelocked (held tokens for a beneficiary until a specified time) or vested (released following a given schedule) using a {VestingWallet}.
* ERC-20 tokens can be timelocked (held for a beneficiary until a specified time) or vested (released following a given schedule) using a {VestingWallet}.
NOTE: This core set of contracts is designed to be unopinionated, allowing developers to access the internal functions in ERC-20 (such as <<ERC20-_mint-address-uint256-,`_mint`>>) and expose them as external functions in the way they prefer.

View File

@ -32,7 +32,7 @@ pragma solidity ^0.8.24;
*/
library TransientSlot {
/**
* @dev UDVT that represents a slot holding a address.
* @dev UDVT that represents a slot holding an address.
*/
type AddressSlot is bytes32;