enhance utility modifier

This commit is contained in:
Ricardo Guilherme Schmidt 2018-03-21 13:23:46 -03:00
parent bf51e76c9c
commit bcadf42cef

View File

@ -49,9 +49,8 @@ contract Identity is ERC725, ERC735 {
_;
}
modifier actorOnly(bytes32 _key) {
require(isKeyPurpose(_key, ACTION_KEY));
modifier keyPurposeOnly(bytes32 _key, uint256 _purpose) {
require(isKeyPurpose(_key, _purpose));
_;
}