From 2c60d62a9373a0cfea43fdc92aeaad7dad61f5d7 Mon Sep 17 00:00:00 2001 From: gabrielbosio Date: Fri, 20 Sep 2024 11:58:12 -0300 Subject: [PATCH] Fix SM test --- contracts/test/AlignedLayerServiceManager.t.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contracts/test/AlignedLayerServiceManager.t.sol b/contracts/test/AlignedLayerServiceManager.t.sol index 15762e7b0..e8c832d96 100644 --- a/contracts/test/AlignedLayerServiceManager.t.sol +++ b/contracts/test/AlignedLayerServiceManager.t.sol @@ -68,9 +68,7 @@ contract AlignedLayerServiceManagerTest is BLSMockAVSDeployer { vm.prank(batcher); alignedLayerServiceManager.createNewTask(batchMerkleRoot, batchDataPointer, maxFeeToRespond); - // Temporary solution: Use Merkle root because block number is low when running tests. - // bytes32 batchIdentifierHash = keccak256(abi.encodePacked(batchMerkleRoot, batcher)); - bytes32 batchIdentifierHash = batchMerkleRoot; + bytes32 batchIdentifierHash = keccak256(abi.encodePacked(batchMerkleRoot, batcher)); (uint32 taskCreatedBlock, bool responded, uint256 _maxFeeToRespond) = alignedLayerServiceManager.batchesState(batchIdentifierHash);