-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
[Ownable] Grant and claim ownership #2369
Comments
Maybe as per default claiming ownership could at the same time grant the original owner to claim it back and new owner has to explicitly revoke that granting by setting it to zero address. |
Hi @mktcode ! Thanks for the suggestion, it is really appreciated. The project owner will review your suggestion as soon as they can. Please wait until we have discussed this idea before writing any code or submitting a Pull Request, so we can go through the design beforehand. We don’t want you to waste your time! |
OpenZeppelin Contracts has previously included a Claimable, see some of the discussions on including a Claimable again: #1488 |
Oh ok, don't know why I didn't find it. Thanks. I'll read it. |
I think |
We removed We considered making I would love to hear everyone's thoughts on this though, I may be mistaken. The people that want to use |
Well, for me, a two-step ownership transfer just seemed sensible and widely useful enough to be made available in Ownable as a "good for most usecases" snippet. I'd like to have that functionality without dealing with a more "complex" role based access control model. |
... just came across this after I submitted my PR: #3620 |
On the |
Motivation:
I was just contemplating... :)
Details:
I suggest implementing an optional intermediary step when transferring ownership and finalizing it only when claimed by the new owner. Until then the granting can be revoked by the owner.
The text was updated successfully, but these errors were encountered: