Fix typos in release-5.4 (#5777)

This commit is contained in:
Hadrien Croubois
2025-07-03 16:36:12 +02:00
committed by GitHub
parent cc94ea4930
commit 6e14ecc01a
3 changed files with 32 additions and 32 deletions

View File

@ -218,7 +218,7 @@ abstract contract MultiSignerERC7913 is AbstractSigner {
/**
* @dev Validates the signatures using the signers and their corresponding signatures.
* Returns whether whether the signers are authorized and the signatures are valid for the given hash.
* Returns whether the signers are authorized and the signatures are valid for the given hash.
*
* IMPORTANT: Sorting the signers by their `keccak256` hash will improve the gas efficiency of this function.
* See {SignatureChecker-areValidSignaturesNow-bytes32-bytes[]-bytes[]} for more details.

View File

@ -136,7 +136,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool exists, bytes32 value) {
@ -256,7 +256,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool exists, uint256 value) {
@ -276,7 +276,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -295,7 +295,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -378,7 +378,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool exists, address value) {
@ -398,7 +398,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -417,7 +417,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -500,7 +500,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(UintToBytes32Map storage map, uint256 key) internal view returns (bool exists, bytes32 value) {
@ -520,7 +520,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -539,7 +539,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -622,7 +622,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(AddressToUintMap storage map, address key) internal view returns (bool exists, uint256 value) {
@ -642,7 +642,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -661,7 +661,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -744,7 +744,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(AddressToAddressMap storage map, address key) internal view returns (bool exists, address value) {
@ -764,7 +764,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -783,7 +783,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -870,7 +870,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(AddressToBytes32Map storage map, address key) internal view returns (bool exists, bytes32 value) {
@ -890,7 +890,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -909,7 +909,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -996,7 +996,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool exists, uint256 value) {
@ -1016,7 +1016,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -1035,7 +1035,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -1118,7 +1118,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(Bytes32ToAddressMap storage map, bytes32 key) internal view returns (bool exists, address value) {
@ -1138,7 +1138,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -1157,7 +1157,7 @@ library EnumerableMap {
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -1259,7 +1259,7 @@ library EnumerableMap {
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* @dev Tries to return the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function tryGet(

View File

@ -137,7 +137,7 @@ function at(Bytes32ToBytes32Map storage map, uint256 index) internal view return
}
/**
* @dev Tries to returns the value associated with \`key\`. O(1).
* @dev Tries to return the value associated with \`key\`. O(1).
* Does not revert if \`key\` is not in the map.
*/
function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool exists, bytes32 value) {
@ -255,7 +255,7 @@ function at(${name} storage map, uint256 index) internal view returns (${key.typ
}
/**
* @dev Tries to returns the value associated with \`key\`. O(1).
* @dev Tries to return the value associated with \`key\`. O(1).
* Does not revert if \`key\` is not in the map.
*/
function tryGet(${name} storage map, ${key.type} key) internal view returns (bool exists, ${value.type} value) {
@ -275,7 +275,7 @@ function get(${name} storage map, ${key.type} key) internal view returns (${valu
}
/**
* @dev Return the an array containing all the keys
* @dev Returns an array containing all the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -294,7 +294,7 @@ function keys(${name} storage map) internal view returns (${key.type}[] memory)
}
/**
* @dev Return the an array containing a slice of the keys
* @dev Returns an array containing a slice of the keys
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
@ -394,7 +394,7 @@ function at(
}
/**
* @dev Tries to returns the value associated with \`key\`. O(1).
* @dev Tries to return the value associated with \`key\`. O(1).
* Does not revert if \`key\` is not in the map.
*/
function tryGet(