Add the Module Registry to storage
In your smart account or in a separate contract that is inherited by the smart account, add the following code:IERC7484
interface, see the Module Registry source code.
Add a setter for the Module Registry
Add a setter for the Module Registry so that the user can enable it:onlyEntryPointOrSelf
. Further, this setter will also store the users’ trusted attesters in the registry.