Skip to content

Commit

Permalink
feat: specify validation-associated exec hooks as permission hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Aug 28, 2024
1 parent cdbe55f commit ad364dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standard/ERCs/erc-6900.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ For all non-view functions within `IModularAccount` except `executeWithAuthoriza

If the caller is not the EntryPoint or the account, the account MUST check access control for direct call validation.

Prior to running the target function, the modular account MUST run all pre execution hooks that apply for the current function call. Pre execution hooks apply if they have been installed to the currently running function selector, or if they are installed to the validation function that was used for the current execution. Pre execution hooks MUST run validation-associated hooks first, in the order they were installed, then selector-associated hooks second, in the order they were installed.
Prior to running the target function, the modular account MUST run all pre execution hooks that apply for the current function call. Pre execution hooks apply if they have been installed to the currently running function selector, or if they are installed as a permission hook to the validation function that was used for the current execution. Pre execution hooks MUST run validation-associated hooks first, in the order they were installed, then selector-associated hooks second, in the order they were installed.

Next, the modular account MUST run the target function, either an account native function or a module-defined execution function.

Expand Down

0 comments on commit ad364dc

Please sign in to comment.