Skip to content

Commit

Permalink
feat: remove trycatch & fmt/bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan committed Feb 14, 2025
1 parent 578f23b commit 5fcd736
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/contracts/core/AllocationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,8 @@ contract AllocationManager is
});
}

// Call the AVS to complete deregistration. Even if the AVS reverts, the operator is
// considered deregistered
try getAVSRegistrar(params.avs).deregisterOperator(params.operator, params.avs, params.operatorSetIds) {}
catch {}
// Call the AVS to complete deregistration
getAVSRegistrar(params.avs).deregisterOperator(params.operator, params.avs, params.operatorSetIds);
}

/// @inheritdoc IAllocationManager
Expand Down
4 changes: 3 additions & 1 deletion src/contracts/interfaces/IAVSRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ interface IAVSRegistrar {
* @param avs the AVS to check
* @return true if the AVS is supported, false otherwise
*/
function supportsAVS(address avs) external view returns (bool);
function supportsAVS(
address avs
) external view returns (bool);
}
4 changes: 2 additions & 2 deletions src/contracts/interfaces/IAllocationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ interface IAllocationManager is IAllocationManagerErrors, IAllocationManagerEven
* If the operator has any slashable stake allocated to the AVS, it remains slashable until the
* DEALLOCATION_DELAY has passed.
* @dev After deregistering within the ALM, this method calls the AVS Registrar's `IAVSRegistrar.
* deregisterOperator` method to complete deregistration. Unlike when registering, this call MAY FAIL.
* Failure is permitted to prevent AVSs from being able to maliciously prevent operators from deregistering.
* deregisterOperator` method to complete deregistration. This call MUST succeed in order for
* deregistration to be successful.
*/
function deregisterFromOperatorSets(
DeregisterParams calldata params
Expand Down

0 comments on commit 5fcd736

Please sign in to comment.