Skip to content

Commit 7c2ef42

Browse files
authored
refactor: Remove requiree from service manager and return false (#406)
1 parent 5332b5e commit 7c2ef42

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AlignedLayerServiceManager.sol

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,13 @@ contract AlignedLayerServiceManager is
124124
bytes memory merkleProof,
125125
uint verificationDataBatchIndex
126126
) external view returns (bool) {
127-
require(
128-
batchesState[batchMerkleRoot].taskCreatedBlock != 0,
129-
"Batch doesn't exist"
130-
);
127+
if (batchesState[batchMerkleRoot].taskCreatedBlock == 0) {
128+
return false;
129+
}
131130

132-
require(
133-
batchesState[batchMerkleRoot].responded == true,
134-
"Batch has not been responded"
135-
);
131+
if (!batchesState[batchMerkleRoot].responded) {
132+
return false;
133+
}
136134

137135
bytes memory leaf = abi.encodePacked(
138136
proofCommitment,

0 commit comments

Comments
 (0)