Skip to content

What is the alternative for Claimable in v2.0.0? #1488

Closed
@barakman

Description

@barakman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    contractsSmart contract code.featureNew contracts, functions, or helpers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions