Skip to content

Commit

Permalink
Merge pull request #178 from bcnmy/fix/cantina-60
Browse files Browse the repository at this point in the history
refactor: remove duplicate modifier
  • Loading branch information
livingrockrises authored Sep 26, 2024
2 parents 2adae86 + aa7ef62 commit 1ed8094
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/Nexus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,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);
}
Expand Down

0 comments on commit 1ed8094

Please sign in to comment.