Merge 3.4 master into solc-0.8 (#2499)
* 3.4.0-rc.0 * Allow manual dispatch of Test CI job * Update lockfile (#2481) Co-authored-by: Renovate Bot <bot@renovateapp.com> * Add "available since" comments in documentation * Add "available since" comments in documentation (cherry picked from commit63a0343dda) * Remove SafeMathMock compilation warnings (#2497) * Remove SafeMathMock compilation warnings (#2497) (cherry picked from commitf4e57fd529) * 3.4.0 * fix safemath test to use renamed function from the mock Co-authored-by: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
@ -148,7 +148,7 @@ library Address {
|
||||
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
|
||||
* but performing a delegate call.
|
||||
*
|
||||
* _Available since v3.3._
|
||||
* _Available since v3.4._
|
||||
*/
|
||||
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
|
||||
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
|
||||
@ -158,7 +158,7 @@ library Address {
|
||||
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
|
||||
* but performing a delegate call.
|
||||
*
|
||||
* _Available since v3.3._
|
||||
* _Available since v3.4._
|
||||
*/
|
||||
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
|
||||
require(isContract(target), "Address: delegate call to non-contract");
|
||||
|
||||
@ -235,6 +235,8 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Tries to returns the value associated with `key`. O(1).
|
||||
* Does not revert if `key` is not in the map.
|
||||
*
|
||||
* _Available since v3.4._
|
||||
*/
|
||||
function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
|
||||
(bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
|
||||
|
||||
Reference in New Issue
Block a user