Skip to content

Commit

Permalink
Fix lint pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
psheth9 committed Sep 6, 2024
1 parent 19b097c commit e0c6995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions cmd/soroban-rpc/internal/methods/get_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,5 @@ func NewGetEventsHandler(
logger: logger,
ledgerReader: ledgerReader,
}
return NewHandler(func(ctx context.Context, request GetEventsRequest) (GetEventsResponse, error) {
return eventsHandler.getEvents(ctx, request)
})
return NewHandler(eventsHandler.getEvents)
}
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/methods/get_transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestGetTransactions_DefaultLimit(t *testing.T) {
assert.Equal(t, toid.New(5, 2, 1).String(), response.Cursor)

// assert transactions result
assert.Len(t, 10, len(response.Transactions))
assert.Len(t, response.Transactions, 10)
}

func TestGetTransactions_DefaultLimitExceedsLatestLedger(t *testing.T) {
Expand Down Expand Up @@ -179,7 +179,7 @@ func TestGetTransactions_CustomLimitAndCursor(t *testing.T) {
assert.Equal(t, toid.New(3, 1, 1).String(), response.Cursor)

// assert transactions result
assert.Len(t, 3, len(response.Transactions))
assert.Len(t, response.Transactions, 3)
assert.Equal(t, uint32(2), response.Transactions[0].Ledger)
assert.Equal(t, uint32(2), response.Transactions[1].Ledger)
assert.Equal(t, uint32(3), response.Transactions[2].Ledger)
Expand Down

0 comments on commit e0c6995

Please sign in to comment.