Skip to content

Commit eadece7

Browse files
committed
fix: add again old NewBatch event
1 parent d694d87 commit eadece7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

contracts/src/core/AlignedLayerServiceManager.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ contract AlignedLayerServiceManager is
3232
uint32 taskCreatedBlock,
3333
string batchDataPointer
3434
);
35+
//old NewBatch event, for smooth Operator upgradeability
36+
event NewBatch(
37+
bytes32 indexed batchMerkleRoot,
38+
uint32 taskCreatedBlock,
39+
string batchDataPointer
40+
);
3541

3642
event BatchVerified(bytes32 indexed batchMerkleRoot, address senderAddress);
3743
event BatcherBalanceUpdated(address indexed batcher, uint256 newBalance);
@@ -97,6 +103,11 @@ contract AlignedLayerServiceManager is
97103
uint32(block.number),
98104
batchDataPointer
99105
);
106+
emit NewBatch(
107+
batchMerkleRoot,
108+
uint32(block.number),
109+
batchDataPointer
110+
);
100111
}
101112

102113
function respondToTask(

0 commit comments

Comments
 (0)