Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use functionDelegateCall from the Address library, in conjuction with allow-recheable delegatecall #185

Closed
wants to merge 2 commits into from

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Jan 18, 2023

Now that the upgrade plugins is more precise in its checks, the vanilla contracts are to better target which operations are safe.

See: OpenZeppelin/openzeppelin-contracts#3971

Consequently, the upgradeable contracts can use the Address library again, and don't need to inline their own private version of functionDelegateCall

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

@Amxx Amxx changed the title Revert 4f7fa769242dcc63153700c26f4557a53231ccdc Use functionDelegateCall from the Address library, in conjuction with allow-recheable delegatecall Jan 18, 2023
@Amxx
Copy link
Collaborator Author

Amxx commented Jan 18, 2023

Once this is merged into patches, patches should be merged into patched/master to fix any conflicts

@frangio
Copy link
Contributor

frangio commented Jan 18, 2023

Some things are missing in this PR. For example:

function __functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {

You can see the full comparison here: 397c946...patches

@frangio
Copy link
Contributor

frangio commented Feb 21, 2023

Superceded by OpenZeppelin/openzeppelin-contracts#4041.

@frangio frangio closed this Feb 21, 2023
@Amxx Amxx deleted the simplify-patches branch February 21, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants