Skip to content

Commit 8725233

Browse files
committed
Revert SM test changes and format
1 parent e17b371 commit 8725233

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

contracts/test/AlignedLayerServiceManager.t.sol

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ contract AlignedLayerServiceManagerTest is BLSMockAVSDeployer {
2020
bytes32 indexed batchMerkleRoot,
2121
address senderAddress,
2222
uint32 taskCreatedBlock,
23-
string batchDataPointer,
24-
uint256 maxFeeToRespond
23+
string batchDataPointer
2524
);
2625
event NewBatchV3(
2726
bytes32 indexed batchMerkleRoot,
@@ -31,6 +30,7 @@ contract AlignedLayerServiceManagerTest is BLSMockAVSDeployer {
3130
uint256 maxFeeToRespond
3231
);
3332

33+
3434
struct BatchIdentifier {
3535
bytes32 batchMerkleRoot;
3636
address senderAddress;
@@ -56,7 +56,11 @@ contract AlignedLayerServiceManagerTest is BLSMockAVSDeployer {
5656
// assertEq(alignedLayerServiceManager.isAggregator(aggregator), true);
5757
// }
5858

59-
function testCreateNewTask(string memory root, string memory batchDataPointer, uint256 maxFeeToRespond) public {
59+
function testCreateNewTask(
60+
string memory root,
61+
string memory batchDataPointer,
62+
uint256 maxFeeToRespond
63+
) public {
6064
vm.assume(bytes(batchDataPointer).length > 50);
6165
bytes32 batchMerkleRoot = keccak256(abi.encodePacked(root));
6266

@@ -70,12 +74,21 @@ contract AlignedLayerServiceManagerTest is BLSMockAVSDeployer {
7074
emit NewBatchV3(batchMerkleRoot, batcher, uint32(block.number), batchDataPointer, maxFeeToRespond);
7175

7276
vm.prank(batcher);
73-
alignedLayerServiceManager.createNewTask(batchMerkleRoot, batchDataPointer, maxFeeToRespond);
77+
alignedLayerServiceManager.createNewTask(
78+
batchMerkleRoot,
79+
batchDataPointer,
80+
maxFeeToRespond
81+
);
7482

75-
bytes32 batchIdentifierHash = keccak256(abi.encodePacked(batchMerkleRoot, batcher));
83+
bytes32 batchIdentifierHash = keccak256(
84+
abi.encodePacked(batchMerkleRoot, batcher)
85+
);
7686

77-
(uint32 taskCreatedBlock, bool responded, uint256 _maxFeeToRespond) =
78-
alignedLayerServiceManager.batchesState(batchIdentifierHash);
87+
(
88+
uint32 taskCreatedBlock,
89+
bool responded,
90+
uint256 _maxFeeToRespond
91+
) = alignedLayerServiceManager.batchesState(batchIdentifierHash);
7992

8093
assertEq(taskCreatedBlock, uint32(block.number));
8194
assertEq(responded, false);

0 commit comments

Comments
 (0)