@@ -36,6 +36,18 @@ contract AlignedLayerServiceManager is
3636 __stakeRegistry
3737 )
3838 {
39+ if (address (__avsDirectory) == address (0 )) {
40+ revert InvalidAddress ("avsDirectory " );
41+ }
42+ if (address (__rewardsCoordinator) == address (0 )) {
43+ revert InvalidAddress ("rewardsCoordinator " );
44+ }
45+ if (address (__registryCoordinator) == address (0 )) {
46+ revert InvalidAddress ("registryCoordinator " );
47+ }
48+ if (address (__stakeRegistry) == address (0 )) {
49+ revert InvalidAddress ("stakeRegistry " );
50+ }
3951 _disableInitializers ();
4052 }
4153
@@ -45,6 +57,15 @@ contract AlignedLayerServiceManager is
4557 address _rewardsInitiator ,
4658 address _alignedAggregator
4759 ) public initializer {
60+ if (_initialOwner == address (0 )) {
61+ revert InvalidAddress ("initialOwner " );
62+ }
63+ if (_rewardsInitiator == address (0 )) {
64+ revert InvalidAddress ("rewardsInitiator " );
65+ }
66+ if (_alignedAggregator == address (0 )) {
67+ revert InvalidAddress ("alignedAggregator " );
68+ }
4869 __ServiceManagerBase_init (_initialOwner, _rewardsInitiator);
4970 alignedAggregator = _alignedAggregator; //can't do setAggregator(aggregator) since caller is not the owner
5071 }
@@ -129,7 +150,7 @@ contract AlignedLayerServiceManager is
129150 if (currentBatch.responded) {
130151 revert BatchAlreadyResponded (batchIdentifierHash);
131152 }
132- currentBatch.responded = true ;
153+ currentBatch.responded = true ;
133154
134155 // Check that batcher has enough funds to fund response
135156 if (batchersBalances[senderAddress] < currentBatch.respondToTaskFeeLimit) {
@@ -181,7 +202,7 @@ contract AlignedLayerServiceManager is
181202 senderAddress,
182203 batchersBalances[senderAddress]
183204 );
184-
205+
185206 payable (alignedAggregator).transfer (txCost);
186207 }
187208
@@ -240,16 +261,17 @@ contract AlignedLayerServiceManager is
240261 bytes memory merkleProof ,
241262 uint256 verificationDataBatchIndex
242263 ) external view returns (bool ) {
243- return this .verifyBatchInclusion (
244- proofCommitment,
245- pubInputCommitment,
246- provingSystemAuxDataCommitment,
247- proofGeneratorAddr,
248- batchMerkleRoot,
249- merkleProof,
250- verificationDataBatchIndex,
251- address (0 )
252- );
264+ return
265+ this .verifyBatchInclusion (
266+ proofCommitment,
267+ pubInputCommitment,
268+ provingSystemAuxDataCommitment,
269+ proofGeneratorAddr,
270+ batchMerkleRoot,
271+ merkleProof,
272+ verificationDataBatchIndex,
273+ address (0 )
274+ );
253275 }
254276
255277 function setAggregator (address _alignedAggregator ) public onlyOwner {
0 commit comments