From bff97d68a19c94a81153bd22059c12ca98cf983e Mon Sep 17 00:00:00 2001 From: livingrockrises <90545960+livingrockrises@users.noreply.github.com> Date: Sun, 22 Sep 2024 11:51:39 +0400 Subject: [PATCH] refactor: remove duplicate modifier --- contracts/Nexus.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/Nexus.sol b/contracts/Nexus.sol index d69940c3..010a42d7 100644 --- a/contracts/Nexus.sol +++ b/contracts/Nexus.sol @@ -149,7 +149,8 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra /// @param module The address of the module to install. /// @param initData Initialization data for the module. /// @dev This function can only be called by the EntryPoint or the account itself for security reasons. - function installModule(uint256 moduleTypeId, address module, bytes calldata initData) external payable onlyEntryPointOrSelf withHook { + /// @dev This function goes through hook checks via withHook modifier through internal function _installModule. + function installModule(uint256 moduleTypeId, address module, bytes calldata initData) external payable onlyEntryPointOrSelf { _installModule(moduleTypeId, module, initData); emit ModuleInstalled(moduleTypeId, module); }