diff --git a/src/account/UpgradeableModularAccount.sol b/src/account/UpgradeableModularAccount.sol index 7c66d329..be4dc126 100644 --- a/src/account/UpgradeableModularAccount.sol +++ b/src/account/UpgradeableModularAccount.sol @@ -509,7 +509,7 @@ contract UpgradeableModularAccount is // Check to see if there is a postExec hook set for this preExec hook FunctionReference postExecHook = - getAccountStorage().selectorData[msg.sig].associatedPostExecHooks[preExecHook]; + getAccountStorage().selectorData[selector].associatedPostExecHooks[preExecHook]; if (postExecHook != FunctionReferenceLib._EMPTY_FUNCTION_REFERENCE) { postHooksToRun[postExecHooksLength].postExecHook = postExecHook; postHooksToRun[postExecHooksLength].preExecHookReturnData = preExecHookReturnData;