Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Nov 19, 2023
1 parent 895cffb commit 8ac940d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/account/AccountLoupe.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
Expand All @@ -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
Expand Down

0 comments on commit 8ac940d

Please sign in to comment.