From 58966e31063879007730914ddc3b972794ca627d Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Sun, 8 Sep 2024 09:58:23 +0800 Subject: [PATCH] remove permission changeAddress for gov --- contracts/activity/CECDistributor.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/activity/CECDistributor.sol b/contracts/activity/CECDistributor.sol index ad738f2..a853588 100644 --- a/contracts/activity/CECDistributor.sol +++ b/contracts/activity/CECDistributor.sol @@ -130,7 +130,7 @@ contract CECDistributor is ReentrancyGuard, Pausable, Ownable, Governable { require(infoMap[to].amount == 0, "CECDistributor: new addr is in whitelist"); require(infoMap[from].amount > 0, "CECDistributor: not in whitelist"); address _sender = _msgSender(); - require(_sender == owner() || _sender == gov || _sender == from, "CECDistributor: sender not allowed"); + require(_sender == owner() || _sender == from, "CECDistributor: sender not allowed"); infoMap[to] = infoMap[from]; delete infoMap[from]; releasedMap[to] = releasedMap[from];