You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The existing 6900 v0.8 module `ColdStorageAddressBookModule.sol` requires that an account only executes calls to transfer asset. If a call does have selector that matches the checked token (ERC-20, ERC-721, ERC-1155) selectors the function `_getTargetOrRecipient()` returns `address(0)` and therefore execution reverts.
- Motivation for this module is to allow an account to make calls that are not intended to transfer assets (native or token) while asserting calls that do transfer assets (based on the selectors this module will check) transfer to white listed recipients.
- This hook module can be installed alongside another hook that enforces which targets and selectors can be called.
- Implements `IValidationHookModule`, `IExecutionModule`.
The module being added in this change will first check if any of the checked selectors is found in any of the execution's calls - if not then the hook allows execution to proceed (assumes no assets are being transferred by the calls in the execution).
See `AddressBookModule.t.sol`
0 commit comments