Skip to content

Commit c652f7a

Browse files
authored
chore: fix some comments (#2874)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> fix some comments Signed-off-by: ledigang <shuangcui@msn.com>
1 parent ffd86bf commit c652f7a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/sequencer/sequencing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// Sequencer is a generic interface for a sequencer
1111
type Sequencer interface {
12-
// SubmitBatchTxs submits a batch of transactions from to sequencer
12+
// SubmitBatchTxs submits a batch of transactions to the sequencer
1313
// Id is the unique identifier for the target chain
1414
// Batch is the batch of transactions to submit
1515
// returns an error if any from the sequencer

sequencers/single/sequencer_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestSequencer_SubmitBatchTxs(t *testing.T) {
7575

7676
res, err := seq.SubmitBatchTxs(context.Background(), coresequencer.SubmitBatchTxsRequest{Id: Id, Batch: &coresequencer.Batch{Transactions: [][]byte{tx}}})
7777
if err != nil {
78-
t.Fatalf("Failed to submit transaction: %v", err)
78+
t.Fatalf("Failed to submit transaction: %v", err)
7979
}
8080
if res == nil {
8181
t.Fatal("Expected response to not be nil")
@@ -90,10 +90,10 @@ func TestSequencer_SubmitBatchTxs(t *testing.T) {
9090
t.Fatalf("Expected 1 transaction, got %d", len(nextBatchresp.Batch.Transactions))
9191
}
9292

93-
// Test with a different ID (expecting an error due to mismatch)
93+
// Test with a different ID (expecting an error due to mismatch)
9494
res, err = seq.SubmitBatchTxs(context.Background(), coresequencer.SubmitBatchTxsRequest{Id: []byte("test2"), Batch: &coresequencer.Batch{Transactions: [][]byte{tx}}})
9595
if err == nil {
96-
t.Fatal("Expected error for invalid ID, got nil")
96+
t.Fatal("Expected error for invalid ID, got nil")
9797
}
9898
if !errors.Is(err, ErrInvalidId) {
9999
t.Fatalf("Expected ErrInvalidId, got %v", err)
@@ -408,7 +408,7 @@ func TestSequencer_GetNextBatch_BeforeDASubmission(t *testing.T) {
408408
Batch: &coresequencer.Batch{Transactions: [][]byte{tx}},
409409
})
410410
if err != nil {
411-
t.Fatalf("Failed to submit transaction: %v", err)
411+
t.Fatalf("Failed to submit transaction: %v", err)
412412
}
413413
if res == nil {
414414
t.Fatal("Expected response to not be nil")

0 commit comments

Comments
 (0)