Skip to content

Commit a10d2c8

Browse files
Fetch posthook by input selector
1 parent 008f366 commit a10d2c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/account/UpgradeableModularAccount.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ contract UpgradeableModularAccount is
509509

510510
// Check to see if there is a postExec hook set for this preExec hook
511511
FunctionReference postExecHook =
512-
getAccountStorage().selectorData[msg.sig].associatedPostExecHooks[preExecHook];
512+
getAccountStorage().selectorData[selector].associatedPostExecHooks[preExecHook];
513513
if (postExecHook != FunctionReferenceLib._EMPTY_FUNCTION_REFERENCE) {
514514
postHooksToRun[postExecHooksLength].postExecHook = postExecHook;
515515
postHooksToRun[postExecHooksLength].preExecHookReturnData = preExecHookReturnData;

0 commit comments

Comments
 (0)