Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gupadhyaya committed Oct 11, 2024
1 parent 1fd77fe commit c328383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (d *DummySequencer) GetNextBatch(ctx context.Context, req sequencing.GetNex
batch := d.tq.GetNextBatch(req.MaxBytes)
batchRes := &sequencing.GetNextBatchResponse{Batch: batch, Timestamp: now}
// If there are no transactions, return empty batch without updating the last batch hash
if batch.Transactions == nil {
if len(batch.Transactions) == 0 {
return batchRes, nil
}

Expand Down
2 changes: 1 addition & 1 deletion test/multi_rollup_sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (d *MultiRollupSequencer) GetNextBatch(ctx context.Context, req sequencing.
batch := rollup.tq.GetNextBatch(req.MaxBytes)
batchRes := &sequencing.GetNextBatchResponse{Batch: batch, Timestamp: now}
// If there are no transactions, return empty batch without updating the last batch hash
if batch.Transactions == nil {
if len(batch.Transactions) == 0 {
return batchRes, nil
}

Expand Down

0 comments on commit c328383

Please sign in to comment.