-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Closed
Labels
contractsSmart contract code.Smart contract code.featureNew contracts, functions, or helpers.New contracts, functions, or helpers.
Description
Not exactly a bug, for for those who have been using Claimable in earlier versions of OZ (for the purpose of transferOwnership followed by claimOwnership) - what are the options in v2.0.0?
Relying solely on Ownable.transferOwnership lacks a safety mechanism for accidentally transferring the ownership to an incorrect address.
At present, the only alternative that I see is copying Claimable.sol from v.12.0 to my repo, fixing the import "./Ownable.sol" statement, and inheriting my contracts from Claimable instead of Ownable.
This is far from being a clean solution.
Are there any alternatives?
I've been reading something about roles (issue 1274, issue 1146, issue 1291).
Is that possibly related?
Thanks
SvenMeyer and Bauchibred
Metadata
Metadata
Assignees
Labels
contractsSmart contract code.Smart contract code.featureNew contracts, functions, or helpers.New contracts, functions, or helpers.