Skip to content

Commit

Permalink
fix: add initialize function (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutiyoo authored Oct 21, 2024
1 parent a25020d commit 83e64c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/src/IncredibleSquaringServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ contract IncredibleSquaringServiceManager is ServiceManagerBase {
incredibleSquaringTaskManager = _incredibleSquaringTaskManager;
}

/// @notice This function initializes the contract's owner and the rewards initiator.
/// @param initialOwner The address to be set as the initial owner of the contract.
/// @param rewardsInitiator The address to be set as the rewards initiator for the contract.
function initialize(address initialOwner, address rewardsInitiator) external initializer {
__ServiceManagerBase_init(initialOwner, rewardsInitiator);
}

/// @notice Called in the event of challenge resolution, in order to forward a call to the Slasher, which 'freezes' the `operator`.
/// @dev The Slasher contract is under active development and its interface is expected to change.
/// We recommend writing slashing logic without integrating with the Slasher at this point in time.
Expand Down

0 comments on commit 83e64c8

Please sign in to comment.