Skip to content

Commit

Permalink
Switch to permission standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
clesaege committed Feb 21, 2018
1 parent d19ef93 commit b204a42
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract AddressBlacklist is AddressWhitelist {
* @param _value The address we want to know if allowed.
* @return allowed True if the address is allowed, false otherwize.
*/
function isAllowed(address _value) public returns (bool allowed) {
return !super.isAllowed(_value);
function isPermitted(address _value) public returns (bool allowed) {
return !super.isPermitted(_value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract AddressWhitelist is Ownable, AddressWhitelistInterface {
* @param _value The address we want to know if allowed.
* @return allowed True if the address is allowed, false otherwize.
*/
function isAllowed(address _value) public returns (bool allowed) {
function isPermitted(address _value) public returns (bool allowed) {
return registred[_value];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ interface AddressWhitelistInterface{
* @param _value The address we want to know if allowed.
* @return allowed True if the address is allowed, false otherwize.
*/
function isAllowed(address _value) public returns (bool allowed);
function isPermitted(address _value) public returns (bool allowed);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract Blacklist is Whitelist {
* @param _value The address we want to know if allowed.
* @return allowed True if the address is allowed, false otherwize.
*/
function isAllowed(bytes32 _value) public returns (bool allowed) {
return !super.isAllowed(_value);
function isPermitted(bytes32 _value) public returns (bool allowed) {
return !super.isPermitted(_value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract Whitelist is Ownable, WhitelistInterface {
* @param _value The value we want to know if allowed.
* @return allowed True if the value is allowed, false otherwize.
*/
function isAllowed(bytes32 _value) public returns (bool allowed) {
function isPermitted(bytes32 _value) public returns (bool allowed) {
return registred[_value];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ interface WhitelistInterface{
* @param _value The value we want to know if allowed.
* @return allowed True if the value is allowed, false otherwize.
*/
function isAllowed(bytes32 _value) public returns (bool allowed);
function isPermitted(bytes32 _value) public returns (bool allowed);
}

0 comments on commit b204a42

Please sign in to comment.