Skip to content

Commit

Permalink
Allow emergency council to activate the blacklist too
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Nov 23, 2023
1 parent be25145 commit 80cc9e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/ethereum/contracts/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,10 @@ contract Token is
* @param _status of whether or not it's enabled
*/
function blacklistAddress(address _spender, bool _status) public {
require(msg.sender == operator_, "only operator");
require(
msg.sender == operator_ || msg.sender == emergencyCouncil_,
"only operator/emergency council"
);
require(_spender != address(0), "no zero address");
emit BlacklistEnabled(_spender, _status);
blacklist_[_spender] = _status;
Expand Down

0 comments on commit 80cc9e5

Please sign in to comment.