@@ -101,9 +101,12 @@ func TestL1SequenceBatchesTrustedBatchSequencedThatAlreadyExistsHappyPath(t *tes
101101 expectationsPreExecution (t , mocks , ctx , batch , nil )
102102 executionResponse := newProcessBatchResponseV2 (batch )
103103 expectationsForExecution (t , mocks , ctx , l1Block .SequencedBatches [1 ][0 ], l1Block .ReceivedAt , executionResponse )
104+ mocks .State .EXPECT ().UpdateBatchTimestamp (ctx , batch .BatchNumber , l1Block .ReceivedAt , mocks .DbTx ).Return (nil )
104105 mocks .State .EXPECT ().AddAccumulatedInputHash (ctx , executionResponse .NewBatchNum , common .BytesToHash (executionResponse .NewAccInputHash ), mocks .DbTx ).Return (nil )
105106 expectationsAddSequencedBatch (t , mocks , ctx , executionResponse )
107+
106108 err := sut .Process (ctx , etherman.Order {Pos : 1 }, l1Block , mocks .DbTx )
109+
107110 require .NoError (t , err )
108111}
109112
@@ -117,9 +120,12 @@ func TestL1SequenceBatchesPermissionlessBatchSequencedThatAlreadyExistsHappyPath
117120 expectationsPreExecution (t , mocks , ctx , batch , nil )
118121 executionResponse := newProcessBatchResponseV2 (batch )
119122 expectationsForExecution (t , mocks , ctx , l1Block .SequencedBatches [1 ][0 ], l1Block .ReceivedAt , executionResponse )
123+ mocks .State .EXPECT ().UpdateBatchTimestamp (ctx , batch .BatchNumber , l1Block .ReceivedAt , mocks .DbTx ).Return (nil )
120124 mocks .State .EXPECT ().AddAccumulatedInputHash (ctx , executionResponse .NewBatchNum , common .BytesToHash (executionResponse .NewAccInputHash ), mocks .DbTx ).Return (nil )
121125 expectationsAddSequencedBatch (t , mocks , ctx , executionResponse )
126+
122127 err := sut .Process (ctx , etherman.Order {Pos : 1 }, l1Block , mocks .DbTx )
128+
123129 require .NoError (t , err )
124130}
125131
@@ -139,6 +145,7 @@ func TestL1SequenceBatchesPermissionlessBatchSequencedThatAlreadyExistsMismatch(
139145 executionResponse := newProcessBatchResponseV2 (batch )
140146 executionResponse .NewStateRoot = common .HexToHash (hashExamplesValues [2 ]).Bytes ()
141147 expectationsForExecution (t , mocks , ctx , l1Block .SequencedBatches [1 ][0 ], l1Block .ReceivedAt , executionResponse )
148+ mocks .State .EXPECT ().UpdateBatchTimestamp (ctx , batch .BatchNumber , l1Block .ReceivedAt , mocks .DbTx ).Return (nil )
142149 mocks .State .EXPECT ().AddAccumulatedInputHash (ctx , executionResponse .NewBatchNum , common .BytesToHash (executionResponse .NewAccInputHash ), mocks .DbTx ).Return (nil )
143150 mocks .Synchronizer .EXPECT ().IsTrustedSequencer ().Return (false )
144151 mocks .State .EXPECT ().AddTrustedReorg (ctx , mock .Anything , mocks .DbTx ).Return (nil )
@@ -177,6 +184,7 @@ func TestL1SequenceBatchesTrustedBatchSequencedThatAlreadyExistsMismatch(t *test
177184 executionResponse := newProcessBatchResponseV2 (batch )
178185 executionResponse .NewStateRoot = common .HexToHash (hashExamplesValues [2 ]).Bytes ()
179186 expectationsForExecution (t , mocks , ctx , l1Block .SequencedBatches [1 ][0 ], l1Block .ReceivedAt , executionResponse )
187+ mocks .State .EXPECT ().UpdateBatchTimestamp (ctx , batch .BatchNumber , l1Block .ReceivedAt , mocks .DbTx ).Return (nil )
180188 mocks .State .EXPECT ().AddAccumulatedInputHash (ctx , executionResponse .NewBatchNum , common .BytesToHash (executionResponse .NewAccInputHash ), mocks .DbTx ).Return (nil )
181189 mocks .Synchronizer .EXPECT ().IsTrustedSequencer ().Return (true )
182190
@@ -295,7 +303,7 @@ func newL1Block(mocks *mocksEtrogProcessorL1, batch *state.Batch, l1InfoRoot com
295303func newComposedL1Block (mocks * mocksEtrogProcessorL1 , forcedBatch * etherman.SequencedBatch , l1InfoRoot common.Hash ) * etherman.Block {
296304 l1Block := etherman.Block {
297305 BlockNumber : 123 ,
298- ReceivedAt : mocks . TimeProvider . Now ( ),
306+ ReceivedAt : time . Date ( 2024 , 1 , 1 , 1 , 0 , 0 , 0 , time . UTC ),
299307 SequencedBatches : [][]etherman.SequencedBatch {},
300308 }
301309 l1Block .SequencedBatches = append (l1Block .SequencedBatches , []etherman.SequencedBatch {})
0 commit comments