Skip to content

Commit

Permalink
feat(contracts): rm redundant checks on BoltManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Bostoen committed Oct 15, 2024
1 parent 6fa1359 commit a10a15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 111 deletions.
103 changes: 0 additions & 103 deletions bolt-contracts/script/Deploy.s.sol

This file was deleted.

10 changes: 2 additions & 8 deletions bolt-contracts/src/contracts/BoltManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,15 @@ contract BoltManager is IBoltManager, OwnableUpgradeable, UUPSUpgradeable {
function pauseOperator(
address operator
) external onlyMiddleware {
if (!operators.contains(operator)) {
revert OperatorNotRegistered();
}

// SAFETY: This will revert if the operator key is not present.
operators.disable(operator);
}

/// @notice Allow a disabled operator to signal opt-in to Bolt Protocol.
function unpauseOperator(
address operator
) external onlyMiddleware {
if (!operators.contains(operator)) {
revert OperatorNotRegistered();
}

// SAFETY: This will revert if the operator key is not present.
operators.enable(operator);
}

Expand Down

0 comments on commit a10a15d

Please sign in to comment.