mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-16 01:14:25 +00:00
enhance utility modifier
This commit is contained in:
parent
bf51e76c9c
commit
bcadf42cef
@ -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));
|
||||
_;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user