@@ -36,8 +36,8 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
3636 external
3737 payable
3838 onlyEntryPointOrSelf
39+ withHook
3940 {
40- (address hook , bytes memory hookData ) = _preCheck ();
4141 (CallType callType , ExecType execType ,,) = mode.decode ();
4242
4343 // check if calltype is batch or single
@@ -68,9 +68,6 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
6868 } else {
6969 revert UnsupportedCallType (callType);
7070 }
71-
72- // TODO: add correct data
73- _postCheck (hook, hookData, true , new bytes (0 ));
7471 }
7572
7673 /**
@@ -87,11 +84,11 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
8784 external
8885 payable
8986 onlyExecutorModule
87+ withHook
9088 returns (
9189 bytes [] memory returnData // TODO returnData is not used
9290 )
9391 {
94- (address hook , bytes memory hookData ) = _preCheck ();
9592 (CallType callType , ExecType execType ,,) = mode.decode ();
9693
9794 // check if calltype is batch or single
@@ -130,9 +127,6 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
130127 } else {
131128 revert UnsupportedCallType (callType);
132129 }
133-
134- // TODO: add correct data
135- _postCheck (hook, hookData, true , new bytes (0 ));
136130 }
137131
138132 /**
@@ -167,18 +161,14 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
167161 external
168162 payable
169163 onlyEntryPointOrSelf
164+ withHook
170165 {
171- (address hook , bytes memory hookData ) = _preCheck ();
172-
173166 if (moduleTypeId == MODULE_TYPE_VALIDATOR) _installValidator (module, initData);
174167 else if (moduleTypeId == MODULE_TYPE_EXECUTOR) _installExecutor (module, initData);
175168 else if (moduleTypeId == MODULE_TYPE_FALLBACK) _installFallbackHandler (module, initData);
176169 else if (moduleTypeId == MODULE_TYPE_HOOK) _installHook (module, initData);
177170 else revert UnsupportedModuleType (moduleTypeId);
178171 emit ModuleInstalled (moduleTypeId, module);
179-
180- // TODO: add correct data
181- _postCheck (hook, hookData, true , new bytes (0 ));
182172 }
183173
184174 /**
@@ -192,9 +182,8 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
192182 external
193183 payable
194184 onlyEntryPointOrSelf
185+ withHook
195186 {
196- (address hook , bytes memory hookData ) = _preCheck ();
197-
198187 if (moduleTypeId == MODULE_TYPE_VALIDATOR) {
199188 _uninstallValidator (module, deInitData);
200189 } else if (moduleTypeId == MODULE_TYPE_EXECUTOR) {
@@ -207,9 +196,6 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
207196 revert UnsupportedModuleType (moduleTypeId);
208197 }
209198 emit ModuleUninstalled (moduleTypeId, module);
210-
211- // TODO: add correct data
212- _postCheck (hook, hookData, true , new bytes (0 ));
213199 }
214200
215201 /**
0 commit comments