From feb8c013559157af126c6983dc4b0eb0f05178be Mon Sep 17 00:00:00 2001 From: David <63450340+PowerStream3604@users.noreply.github.com> Date: Wed, 4 Sep 2024 00:37:16 +0900 Subject: [PATCH] Optimize Module Manager (#178) --- src/account/ModuleManagerInternals.sol | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/account/ModuleManagerInternals.sol b/src/account/ModuleManagerInternals.sol index 31ae1452..adfef508 100644 --- a/src/account/ModuleManagerInternals.sol +++ b/src/account/ModuleManagerInternals.sol @@ -97,12 +97,7 @@ abstract contract ModuleManagerInternals is IModularAccount { _validationData.isGlobal = false; _validationData.isSignatureValidation = false; - - // Clear the selectors - uint256 length = _validationData.selectors.length(); - for (uint256 i = 0; i < length; ++i) { - _validationData.selectors.remove(_validationData.selectors.at(0)); - } + _validationData.isUserOpValidation = false; } function _addExecHooks(EnumerableSet.Bytes32Set storage hooks, HookConfig hookConfig) internal {