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

Add a beacon proxy contract #2411

Merged
merged 33 commits into from
Nov 26, 2020
Merged

Add a beacon proxy contract #2411

merged 33 commits into from
Nov 26, 2020

Conversation

frangio
Copy link
Contributor

@frangio frangio commented Nov 20, 2020

This PR adds a beacon proxy inspired by Dharma's. The code was initially developed by @f8n in https://github.com/f8n/openzeppelin-sdk/pull/6. I've changed a few things on top of that code:

  • Renamed contracts and rewrote revert reasons to conform to our conventions.
  • Edited docs and wrote what was missing.
  • Used Address.functionDelegateCall instead of inline assembly.
  • Adapted tests to run in our test suite.

@frangio frangio marked this pull request as ready for review November 20, 2020 20:18
Copy link
Contributor

@spalladino spalladino left a comment

Choose a reason for hiding this comment

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

LGTM @frangio! I added a few comments only.

contracts/proxy/README.adoc Outdated Show resolved Hide resolved
contracts/proxy/UpgradeableBeacon.sol Outdated Show resolved Hide resolved
test/proxy/BeaconProxy.test.js Outdated Show resolved Hide resolved
test/proxy/BeaconProxy.test.js Outdated Show resolved Hide resolved
Copy link
Contributor

@spalladino spalladino left a comment

Choose a reason for hiding this comment

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

Great work with the test suite, looks much better now!

@frangio frangio merged commit 951e946 into OpenZeppelin:master Nov 26, 2020
@frangio frangio deleted the beacon-proxy branch November 26, 2020 16:03
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.

2 participants