mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
feat: Allow dispatcher and executor to set follow module.
This commit is contained in:
@@ -185,7 +185,6 @@ contract LensHub is LensNFTBase, VersionedInitializable, LensMultiState, LensHub
|
||||
address followModule,
|
||||
bytes calldata followModuleInitData
|
||||
) external override whenNotPaused {
|
||||
_validateCallerIsProfileOwner(profileId);
|
||||
GeneralLib.setFollowModule(profileId, followModule, followModuleInitData);
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ library GeneralLib {
|
||||
address followModule,
|
||||
bytes calldata followModuleInitData
|
||||
) external {
|
||||
// _validateCallerIsOwnerOrDispatcherOrExecutor(profileId);
|
||||
_validateCallerIsOwnerOrDispatcherOrExecutor(profileId);
|
||||
_setFollowModule(profileId, msg.sender, followModule, followModuleInitData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user