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
I would like to extract onlyModifier behavior out of modifier like this:
This will allow to override modifier behavior for example with
Multiownablesmart contract: https://github.com/bitclave/Multiownable