remove permission changeAddress for gov

This commit is contained in:
CounterFire2023 2024-09-08 09:58:23 +08:00
parent f82f601cff
commit 58966e3106

View File

@ -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];