Skip to content

Commit

Permalink
WIP: 4337
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay-ap committed Oct 27, 2023
1 parent 1f16492 commit 119aca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/SafeProtocolManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ contract SafeProtocolManager is ISafeProtocolManager, RegistryManager, HooksMana
function enablePlugin(
address plugin,
uint8 permissions
) external noZeroOrSentinelPlugin(plugin) onlyPermittedModule(plugin, MODULE_TYPE_PLUGIN) onlyAccount {
) external noZeroOrSentinelPlugin(plugin) onlyPermittedModule(plugin, MODULE_TYPE_PLUGIN) {
// address(0) check omitted because it is not expected to enable it as a plugin and
// call to it would fail. Additionally, registry should not permit address(0) as an module.
if (!ISafeProtocolPlugin(plugin).supportsInterface(type(ISafeProtocolPlugin).interfaceId))
Expand Down Expand Up @@ -207,7 +207,7 @@ contract SafeProtocolManager is ISafeProtocolManager, RegistryManager, HooksMana
* @notice Disable a plugin. This function should be called by account.
* @param plugin Plugin to be disabled
*/
function disablePlugin(address prevPlugin, address plugin) external noZeroOrSentinelPlugin(plugin) onlyAccount {
function disablePlugin(address prevPlugin, address plugin) external noZeroOrSentinelPlugin(plugin) {
PluginAccessInfo storage prevPluginInfo = enabledPlugins[msg.sender][prevPlugin];
PluginAccessInfo storage pluginInfo = enabledPlugins[msg.sender][plugin];

Expand Down

0 comments on commit 119aca1

Please sign in to comment.