Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

[upgradable authenticator] Proxy reader #389

Merged

Conversation

fedgiac
Copy link
Contributor

@fedgiac fedgiac commented Jan 29, 2021

(PR is part of the work in #167 to make the authenticator upgradable.)

Adds a small library to recover the implementation and the owner of EIP-1967-compatible proxies.

The two failing tests from #167 are fixed by referencing to the proxy implementation.
Next steps, in no particular order:

  1. test that the address of the proxy is deterministic
  2. test that the owner is the expected address, and
  3. test that the proxy upgrade process works.

Test Plan

Implementation retrieval is used in the existing unit tests. Owner retrieval is untested.

Copy link
Contributor

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

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

Dude, This is amazing! You have become quite the solidity guru.

Copy link
Contributor

@nlordell nlordell left a comment

Choose a reason for hiding this comment

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

Nice!

@fedgiac fedgiac merged commit abac1ba into 167/upgradable_authenticator Jan 29, 2021
@fedgiac fedgiac deleted the 167/upgradable_authenticator-proxy-reader branch January 29, 2021 12:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants