@@ -201,16 +201,16 @@ func TestDASubmitter_SubmitHeaders_Success(t *testing.T) {
201201 // Save block 1
202202 batch1 , err := st .NewBatch (ctx )
203203 require .NoError (t , err )
204- require .NoError (t , batch1 .SaveBlockData (header1 , data1 , & sig1 ))
205- require .NoError (t , batch1 .SetHeight (1 ))
206- require .NoError (t , batch1 .Commit ())
204+ require .NoError (t , batch1 .SaveBlockData (ctx , header1 , data1 , & sig1 ))
205+ require .NoError (t , batch1 .SetHeight (ctx , 1 ))
206+ require .NoError (t , batch1 .Commit (ctx ))
207207
208208 // Save block 2
209209 batch2 , err := st .NewBatch (ctx )
210210 require .NoError (t , err )
211- require .NoError (t , batch2 .SaveBlockData (header2 , data2 , & sig2 ))
212- require .NoError (t , batch2 .SetHeight (2 ))
213- require .NoError (t , batch2 .Commit ())
211+ require .NoError (t , batch2 .SaveBlockData (ctx , header2 , data2 , & sig2 ))
212+ require .NoError (t , batch2 .SetHeight (ctx , 2 ))
213+ require .NoError (t , batch2 .Commit (ctx ))
214214
215215 // Get headers from cache and submit
216216 headers , marshalledHeaders , err := cm .GetPendingHeaders (ctx )
@@ -318,16 +318,16 @@ func TestDASubmitter_SubmitData_Success(t *testing.T) {
318318 // Save block 1
319319 batch1 , err := st .NewBatch (ctx )
320320 require .NoError (t , err )
321- require .NoError (t , batch1 .SaveBlockData (header1 , data1 , & sig1 ))
322- require .NoError (t , batch1 .SetHeight (1 ))
323- require .NoError (t , batch1 .Commit ())
321+ require .NoError (t , batch1 .SaveBlockData (ctx , header1 , data1 , & sig1 ))
322+ require .NoError (t , batch1 .SetHeight (ctx , 1 ))
323+ require .NoError (t , batch1 .Commit (ctx ))
324324
325325 // Save block 2
326326 batch2 , err := st .NewBatch (ctx )
327327 require .NoError (t , err )
328- require .NoError (t , batch2 .SaveBlockData (header2 , data2 , & sig2 ))
329- require .NoError (t , batch2 .SetHeight (2 ))
330- require .NoError (t , batch2 .Commit ())
328+ require .NoError (t , batch2 .SaveBlockData (ctx , header2 , data2 , & sig2 ))
329+ require .NoError (t , batch2 .SetHeight (ctx , 2 ))
330+ require .NoError (t , batch2 .Commit (ctx ))
331331
332332 // Get data from cache and submit
333333 signedDataList , marshalledData , err := cm .GetPendingData (ctx )
@@ -378,9 +378,9 @@ func TestDASubmitter_SubmitData_SkipsEmptyData(t *testing.T) {
378378 sig := types .Signature ([]byte ("sig" ))
379379 batch , err := st .NewBatch (ctx )
380380 require .NoError (t , err )
381- require .NoError (t , batch .SaveBlockData (header , emptyData , & sig ))
382- require .NoError (t , batch .SetHeight (1 ))
383- require .NoError (t , batch .Commit ())
381+ require .NoError (t , batch .SaveBlockData (ctx , header , emptyData , & sig ))
382+ require .NoError (t , batch .SetHeight (ctx , 1 ))
383+ require .NoError (t , batch .Commit (ctx ))
384384
385385 // Get data from cache and submit - should succeed but skip empty data
386386 // Get data from cache and submit
@@ -439,9 +439,9 @@ func TestDASubmitter_SubmitData_NilSigner(t *testing.T) {
439439 sig := types .Signature ([]byte ("sig" ))
440440 batch , err := st .NewBatch (ctx )
441441 require .NoError (t , err )
442- require .NoError (t , batch .SaveBlockData (header , data , & sig ))
443- require .NoError (t , batch .SetHeight (1 ))
444- require .NoError (t , batch .Commit ())
442+ require .NoError (t , batch .SaveBlockData (ctx , header , data , & sig ))
443+ require .NoError (t , batch .SetHeight (ctx , 1 ))
444+ require .NoError (t , batch .Commit (ctx ))
445445
446446 // Get data from cache and submit with nil signer - should fail
447447 signedDataList , marshalledData , err := cm .GetPendingData (ctx )
0 commit comments