Fix Broken Docs References (#5436)
This commit is contained in:
@ -13,10 +13,10 @@ import {Context} from "./Context.sol";
|
||||
* careful about sending transactions invoking {multicall}. For example, a relay address that filters function
|
||||
* selectors won't filter calls nested within a {multicall} operation.
|
||||
*
|
||||
* NOTE: Since 5.0.1 and 4.9.4, this contract identifies non-canonical contexts (i.e. `msg.sender` is not {_msgSender}).
|
||||
* NOTE: Since 5.0.1 and 4.9.4, this contract identifies non-canonical contexts (i.e. `msg.sender` is not {Context-_msgSender}).
|
||||
* If a non-canonical context is identified, the following self `delegatecall` appends the last bytes of `msg.data`
|
||||
* to the subcall. This makes it safe to use with {ERC2771Context}. Contexts that don't affect the resolution of
|
||||
* {_msgSender} are not propagated to subcalls.
|
||||
* {Context-_msgSender} are not propagated to subcalls.
|
||||
*/
|
||||
abstract contract Multicall is Context {
|
||||
/**
|
||||
|
||||
@ -95,7 +95,7 @@ library ShortStrings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
|
||||
* @dev Decode a string that was encoded to `ShortString` or written to storage using {toShortStringWithFallback}.
|
||||
*/
|
||||
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
|
||||
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
|
||||
@ -107,7 +107,7 @@ library ShortStrings {
|
||||
|
||||
/**
|
||||
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
|
||||
* {setWithFallback}.
|
||||
* {toShortStringWithFallback}.
|
||||
*
|
||||
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
|
||||
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
|
||||
|
||||
@ -139,7 +139,7 @@ library Strings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Variant of {parseUint} that parses a substring of `input` located between position `begin` (included) and
|
||||
* @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and
|
||||
* `end` (excluded).
|
||||
*
|
||||
* Requirements:
|
||||
@ -177,7 +177,7 @@ library Strings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Implementation of {tryParseUint} that does not check bounds. Caller should make sure that
|
||||
* @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that
|
||||
* `begin <= end <= input.length`. Other inputs would result in undefined behavior.
|
||||
*/
|
||||
function _tryParseUintUncheckedBounds(
|
||||
@ -250,7 +250,7 @@ library Strings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Implementation of {tryParseInt} that does not check bounds. Caller should make sure that
|
||||
* @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that
|
||||
* `begin <= end <= input.length`. Other inputs would result in undefined behavior.
|
||||
*/
|
||||
function _tryParseIntUncheckedBounds(
|
||||
@ -287,7 +287,7 @@ library Strings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Variant of {parseHexUint} that parses a substring of `input` located between position `begin` (included) and
|
||||
* @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and
|
||||
* `end` (excluded).
|
||||
*
|
||||
* Requirements:
|
||||
@ -325,7 +325,7 @@ library Strings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Implementation of {tryParseHexUint} that does not check bounds. Caller should make sure that
|
||||
* @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that
|
||||
* `begin <= end <= input.length`. Other inputs would result in undefined behavior.
|
||||
*/
|
||||
function _tryParseHexUintUncheckedBounds(
|
||||
@ -346,7 +346,7 @@ library Strings {
|
||||
result *= 16;
|
||||
unchecked {
|
||||
// Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).
|
||||
// This guaratees that adding a value < 16 will not cause an overflow, hence the unchecked.
|
||||
// This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.
|
||||
result += chr;
|
||||
}
|
||||
}
|
||||
@ -364,7 +364,7 @@ library Strings {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Variant of {parseAddress} that parses a substring of `input` located between position `begin` (included) and
|
||||
* @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and
|
||||
* `end` (excluded).
|
||||
*
|
||||
* Requirements:
|
||||
@ -378,7 +378,7 @@ library Strings {
|
||||
|
||||
/**
|
||||
* @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly
|
||||
* formatted address. See {parseAddress} requirements.
|
||||
* formatted address. See {parseAddress-string} requirements.
|
||||
*/
|
||||
function tryParseAddress(string memory input) internal pure returns (bool success, address value) {
|
||||
return tryParseAddress(input, 0, bytes(input).length);
|
||||
@ -386,7 +386,7 @@ library Strings {
|
||||
|
||||
/**
|
||||
* @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly
|
||||
* formatted address. See {parseAddress} requirements.
|
||||
* formatted address. See {parseAddress-string-uint256-uint256} requirements.
|
||||
*/
|
||||
function tryParseAddress(
|
||||
string memory input,
|
||||
|
||||
@ -109,7 +109,7 @@ abstract contract EIP712 is IERC5267 {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev See {IERC-5267}.
|
||||
* @inheritdoc IERC5267
|
||||
*/
|
||||
function eip712Domain()
|
||||
public
|
||||
|
||||
Reference in New Issue
Block a user