Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add initialize function #96

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading