Skip to content

Commit 59907e2

Browse files
committed
fix: remove deprecated verifyBatchInclusion function
1 parent 3a47b87 commit 59907e2

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

contracts/src/core/AlignedLayerServiceManager.sol

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -298,27 +298,6 @@ contract AlignedLayerServiceManager is
298298
);
299299
}
300300

301-
// Old function signature for backwards compatibility
302-
function verifyBatchInclusion(
303-
bytes32 proofCommitment,
304-
bytes32 pubInputCommitment,
305-
bytes32 provingSystemAuxDataCommitment,
306-
bytes20 proofGeneratorAddr,
307-
bytes32 batchMerkleRoot,
308-
bytes memory merkleProof,
309-
uint256 verificationDataBatchIndex
310-
) external view onlyWhenNotPaused(2) returns (bool) {
311-
return this.verifyBatchInclusion(
312-
proofCommitment,
313-
pubInputCommitment,
314-
provingSystemAuxDataCommitment,
315-
proofGeneratorAddr,
316-
batchMerkleRoot,
317-
merkleProof,
318-
verificationDataBatchIndex,
319-
address(0)
320-
);
321-
}
322301

323302
function setAggregator(address _alignedAggregator) public onlyOwner {
324303
alignedAggregator = _alignedAggregator;

examples/verify/src/VerifyBatchInclusionCaller.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ contract VerifyBatchInclusionCaller {
1515
bytes20 proofGeneratorAddr,
1616
bytes32 batchMerkleRoot,
1717
bytes memory merkleProof,
18-
uint256 verificationDataBatchIndex
18+
uint256 verificationDataBatchIndex,
19+
address senderAddress
1920
) external view returns (bool) {
2021
(bool callWasSuccessfull, bytes memory proofIsIncluded) = targetContract.staticcall(
2122
abi.encodeWithSignature(
22-
"verifyBatchInclusion(bytes32,bytes32,bytes32,bytes20,bytes32,bytes,uint256)",
23+
"verifyBatchInclusion(bytes32,bytes32,bytes32,bytes20,bytes32,bytes,uint256,address)",
2324
proofCommitment,
2425
pubInputCommitment,
2526
provingSystemAuxDataCommitment,
2627
proofGeneratorAddr,
2728
batchMerkleRoot,
2829
merkleProof,
29-
verificationDataBatchIndex
30+
verificationDataBatchIndex,
31+
senderAddress
3032
)
3133
);
3234

0 commit comments

Comments
 (0)