Skip to content

Commit

Permalink
add isUserOpValidation flag ref in installation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
fangting-alchemy committed Aug 29, 2024
1 parent 24cb5a1 commit 0e7874a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standard/ERCs/erc-6900.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,13 +476,13 @@ During validation installation, the account MUST correctly set flags and other f
- the account MUST install all pre validation hooks required by the user and call `onInstall` with the user-provided data on the hook module to initialize the states.
- the account MUST install all permission hooks required by the user and call `onInstall` with the user-provided data on the hook module to initialize the states.
- the account MUST add all selectors required by the user that the validation can validate.
- the account MUST set `isGlobal` and `isSignatureValidation` flags as required.
- the account MUST set all flags as required, like `isGlobal`, `isSignatureValidation`, and `isUserOpValidation`.
- the account MUST call `onInstall` on the validation module to initialize the states.
- the account MUST emit `ValidationInstalled` as defined in the interface for all installed validations.

During validation uninstallation, the account MUST correctly clear flags and other fields based on the incoming data provided by users.

- the account MUST clear all flags for the validation function, including `isGlobal` and `isSignatureValidation`.
- the account MUST clear all flags for the validation function, like `isGlobal`, `isSignatureValidation`, and `isUserOpValidation`.
- the account MUST remomve all hooks and clear hook module states by calling `onUninstall` with the user-provided data for each hook, including both pre validation hooks and permission hooks.
- the account MUST remove all selectors that the validation function can validate.
- the account MUST emit `ValidationUninstalled` as defined in the interface for all uninstalled validations.
Expand Down

0 comments on commit 0e7874a

Please sign in to comment.