From 8ac940d4499bd09665f6c68f22b90e2b59d46bea Mon Sep 17 00:00:00 2001 From: howydev <132113803+howydev@users.noreply.github.com> Date: Sun, 19 Nov 2023 18:00:21 -0500 Subject: [PATCH] fix --- src/account/AccountLoupe.sol | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/account/AccountLoupe.sol b/src/account/AccountLoupe.sol index 624d96ca..a1992ecc 100644 --- a/src/account/AccountLoupe.sol +++ b/src/account/AccountLoupe.sol @@ -38,7 +38,7 @@ abstract contract AccountLoupe is IAccountLoupe, AccountStorageV1 { /// @inheritdoc IAccountLoupe function getExecutionHooks(bytes4 selector) external view returns (ExecutionHooks[] memory execHooks) { - execHooks = _getHooks(_getAccountStorage().selectorData[selector];.executionHooks); + execHooks = _getHooks(_getAccountStorage().selectorData[selector].executionHooks); } /// @inheritdoc IAccountLoupe @@ -47,7 +47,8 @@ abstract contract AccountLoupe is IAccountLoupe, AccountStorageV1 { view returns (ExecutionHooks[] memory execHooks) { - PermittedCallData storage permittedCallData = _getAccountStorage().permittedCalls[_getPermittedCallKey(callingPlugin, selector)]; + PermittedCallData storage permittedCallData = + _getAccountStorage().permittedCalls[_getPermittedCallKey(callingPlugin, selector)]; execHooks = _getHooks(permittedCallData.permittedCallHooks); } @@ -62,12 +63,9 @@ abstract contract AccountLoupe is IAccountLoupe, AccountStorageV1 { ) { SelectorData storage selectorData = _getAccountStorage().selectorData[selector]; - preUserOpValidationHooks = CastLib.toFunctionReferenceArray( - selectorData.preUserOpValidationHooks.getAll() - ); - preRuntimeValidationHooks = CastLib.toFunctionReferenceArray( - selectorData.preRuntimeValidationHooks.getAll() - ); + preUserOpValidationHooks = CastLib.toFunctionReferenceArray(selectorData.preUserOpValidationHooks.getAll()); + preRuntimeValidationHooks = + CastLib.toFunctionReferenceArray(selectorData.preRuntimeValidationHooks.getAll()); } /// @inheritdoc IAccountLoupe