-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Closed
Labels
featureNew contracts, functions, or helpers.New contracts, functions, or helpers.good first issueLow hanging fruit for new contributors to get involved!Low hanging fruit for new contributors to get involved!
Description
🎉 Description
Something like this:
contract Authorizable is Ownable {
mapping(address => bool) public authorized;
modifier onlyAuthorized() {
require(authorized[msg.sender] || owner == msg.sender);
_;
}
function addAuthorized(address _toAdd) onlyOwner public {
authorized[_toAdd] = true;
}
function removeAuthorized(address _toRemove) onlyOwner public {
authorized[_toRemove] = false;
}
}
- [+] 📈 This is a feature request.
Originally discussed here https://ethereum.stackexchange.com/questions/39654/smart-contract-multiple-owners/39657#39657
eordano and martriay
Metadata
Metadata
Assignees
Labels
featureNew contracts, functions, or helpers.New contracts, functions, or helpers.good first issueLow hanging fruit for new contributors to get involved!Low hanging fruit for new contributors to get involved!