From 7be9cfca0e9f5d7e06f0ea2e3112334fae24d771 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 19 Jul 2024 11:46:10 +0800 Subject: [PATCH] feat: add paused check and blacklist check for updateAgent --- contracts/BC_fusion/StakeHub.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/BC_fusion/StakeHub.sol b/contracts/BC_fusion/StakeHub.sol index 8c2079b7..ee54f557 100644 --- a/contracts/BC_fusion/StakeHub.sol +++ b/contracts/BC_fusion/StakeHub.sol @@ -325,7 +325,7 @@ contract StakeHub is System, Initializable, Protectable { } /*----------------- external functions -----------------*/ - function updateAgent(address newAgent) external validatorExist(msg.sender) { + function updateAgent(address newAgent) external validatorExist(msg.sender) whenNotPaused notInBlackList { if (agentToOperator[newAgent] != address(0)) revert InvalidAgent(); if (_validatorSet.contains(newAgent)) revert InvalidAgent();