Skip to content

Commit

Permalink
add onlyOwner modifier on updateExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekdefi committed Sep 19, 2024
1 parent b5fa427 commit 3dac8e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/perennial/contracts/MarketFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ contract MarketFactory is IMarketFactory, Factory {
emit ParameterUpdated(newParameter);
}

/// @notice Updates the status of an operator for the caller
/// @param extension The operator to update to enable protocol-wide
/// @param newEnabled The new status of the operator
function updateExtension(address extension, bool newEnabled) external {
/// @notice Updates the status of an extension
/// @param extension The extension to update to enable protocol-wide
/// @param newEnabled The new status of the extension
function updateExtension(address extension, bool newEnabled) external onlyOwner {
extensions[extension] = newEnabled;
emit ExtensionUpdated(extension, newEnabled);
}
Expand Down

0 comments on commit 3dac8e7

Please sign in to comment.