From 80cc9e55f112e7753d5fd813656c2ac89777751b Mon Sep 17 00:00:00 2001 From: user Date: Thu, 23 Nov 2023 11:16:35 +1030 Subject: [PATCH] Allow emergency council to activate the blacklist too --- contracts/ethereum/contracts/Token.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contracts/ethereum/contracts/Token.sol b/contracts/ethereum/contracts/Token.sol index e1c863f18..b7924db69 100644 --- a/contracts/ethereum/contracts/Token.sol +++ b/contracts/ethereum/contracts/Token.sol @@ -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;