Skip to content

Let's extract method from onlyOwner modifier #540

@k06a

Description

@k06a

I would like to extract onlyModifier behavior out of modifier like this:

modifier onlyOwner() {
    if (onlyOwnerMethod(msg.sender)) {
        _;
    }
}

function onlyOwnerMethod(address wallet) internal constant returns (bool) {
    require(wallet == owner);
    return true;
}

This will allow to override modifier behavior for example with Multiownable smart contract: https://github.com/bitclave/Multiownable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions