Skip to content

Commit

Permalink
Update cmd/stellar-rpc/internal/methods/get_events.go
Browse files Browse the repository at this point in the history
Co-authored-by: tamirms <[email protected]>
  • Loading branch information
2opremio and tamirms authored Jan 9, 2025
1 parent 89aaa5e commit 9e45cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/stellar-rpc/internal/methods/get_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (g *GetEventsRequest) Valid(maxLimit uint) error {
return errors.New("startLedger must be positive")
}
if g.EndLedger > 0 && g.EndLedger < g.StartLedger {
return errors.New("startLedger must be >= endLedger")
return errors.New("startLedger must be <= endLedger")
}

return nil
Expand Down

0 comments on commit 9e45cac

Please sign in to comment.