This commit is contained in:
cui 2026-05-22 15:52:43 +00:00 committed by GitHub
commit c3daa842c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1433,7 +1433,7 @@ func (r *Resolver) Logs(ctx context.Context, args struct{ Filter FilterCriteria
if args.Filter.ToBlock != nil {
end = int64(*args.Filter.ToBlock)
}
if begin > 0 && end > 0 && begin > end {
if begin >= 0 && end >= 0 && begin > end {
return nil, errInvalidBlockRange
}
var addresses []common.Address