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

Annotate Multicall contract #3961

Merged

Conversation

JulissaDantes
Copy link
Contributor

Fixes #3843

Annotates MulticallUpgradeable with @custom:oz-upgrades-unsafe-allow delegatecall so that Upgrades Plugins will not raise a validation error for the delegatecall. Note that the Upgrades Plugins will still perform validations to ensure that the contract does not have selfdestructs.

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

Amxx
Amxx previously approved these changes Jan 16, 2023
Copy link
Collaborator

@Amxx Amxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!!

I've done that manually in the upgrade plugin commands so many times ... it pains me to not have though of that earlier!

@frangio
Copy link
Contributor

frangio commented Jan 16, 2023

Let's update the changelog for this one so if someone has added unsafeAllow: ['delegatecall'] in their deployment code they are alerted that they can now consider removing it.

@frangio frangio closed this Jan 16, 2023
@frangio frangio reopened this Jan 16, 2023
frangio
frangio previously approved these changes Jan 18, 2023
@frangio frangio merged commit 74b8ae9 into OpenZeppelin:master Jan 18, 2023
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.

Annotate MulticallUpgradeable to allow delegatecall for Upgrades Plugins
3 participants