Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
c22f9909
Commit
c22f9909
authored
Feb 02, 2021
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Address.functionDelegateCall patch
(cherry picked from commit
0fdc159c
)
parent
c8ce0039
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
01-remove-address-functiondelegatecall.patch
...deable/patch/01-remove-address-functiondelegatecall.patch
+2
-2
No files found.
scripts/upgradeable/patch/01-remove-address-functiondelegatecall.patch
View file @
c22f9909
...
@@ -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");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment