From 31df133f5bd298a20ff34056e5e2cc05e230e92a Mon Sep 17 00:00:00 2001 From: Jay Paik Date: Tue, 23 Jan 2024 03:57:04 -0500 Subject: [PATCH] fix: obsolete comment within _doPreExecHooks --- src/account/UpgradeableModularAccount.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/account/UpgradeableModularAccount.sol b/src/account/UpgradeableModularAccount.sol index fdd030e9..da0b04a8 100644 --- a/src/account/UpgradeableModularAccount.sol +++ b/src/account/UpgradeableModularAccount.sol @@ -587,8 +587,8 @@ contract UpgradeableModularAccount is if (hasPostOnlyExecHooks) { // If we have post-only hooks, we allocate an single FunctionReference[] for them, and one element - // in the args for their empty `bytes` argument. We put this into the first element of the post - // hooks in order to have it run last. + // in the args for their empty `bytes` argument. We put this into the last element of the post + // hooks, which means post-only hooks will run before any other post hooks. postHooksToRun[postHooksToRunLength - 1] = CastLib.toFunctionReferenceArray(selectorData.executionHooks.postOnlyHooks.getAll()); }