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

Transfer a specific access #3890

Closed
njrapidinnovation opened this issue Dec 20, 2022 · 1 comment
Closed

Transfer a specific access #3890

njrapidinnovation opened this issue Dec 20, 2022 · 1 comment

Comments

@njrapidinnovation
Copy link

🧐 Motivation
I want to transfer my OPERATOR access to another wallet using access control but the thing i can do is only RENOUNCE my role. I want a method where my OPERATOR role gets REVOKED from my current address and GRANTED to a new address.

📝 Details

  • A method to inform the ADMIN OF MY CURRENT ROLE that i want to transfer my role instead of REVOKING it.
  • A method which only ADMIN OF MY CURRENT ROLE can call to REVOKE my access from my current address and GRANT it to new given address.
njrapidinnovation pushed a commit to njrapidinnovation/openzeppelin-contracts that referenced this issue Dec 20, 2022
@frangio
Copy link
Contributor

frangio commented Dec 21, 2022

As far as I can tell, this is already possible. The method to inform the admin is to send them an off-chain message (obviously authenticated). The admin can then grant the new role and revoke the previous one.

See related issue #3623 for enforcing a 2-step transfer for admin roles.

@frangio frangio closed this as completed Dec 21, 2022
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

No branches or pull requests

2 participants