Skip to content

Commit 5271507

Browse files
authored
Merge pull request #5 from doublespending/fix-fetch-posthook-with-input-selector
Fetch posthook by input selector
2 parents 008f366 + a10d2c8 commit 5271507

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)