Commit c22f9909 by Francisco Giordano

Fix Address.functionDelegateCall patch

(cherry picked from commit 0fdc159c)
parent c8ce0039
...@@ -26,7 +26,7 @@ index 75acb96f..08a59041 100644 ...@@ -26,7 +26,7 @@ index 75acb96f..08a59041 100644
- * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
- * but performing a delegate call. - * but performing a delegate call.
- * - *
- * _Available since v3.3._ - * _Available since v3.4._
- */ - */
- function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { - function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
- return functionDelegateCall(target, data, "Address: low-level delegate call failed"); - return functionDelegateCall(target, data, "Address: low-level delegate call failed");
...@@ -36,7 +36,7 @@ index 75acb96f..08a59041 100644 ...@@ -36,7 +36,7 @@ index 75acb96f..08a59041 100644
- * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], - * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
- * but performing a delegate call. - * 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) { - function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
- require(isContract(target), "Address: delegate call to non-contract"); - require(isContract(target), "Address: delegate call to non-contract");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment