From 1e36e2502f0b1775afafb60d07e2c96a0687abeb Mon Sep 17 00:00:00 2001 From: ucwong Date: Wed, 8 Nov 2023 02:53:57 +0800 Subject: [PATCH] eth/filter : reused the error msg for invalid block range --- eth/filters/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/filter.go b/eth/filters/filter.go index a5750c1934..83e3284a2b 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -114,7 +114,7 @@ func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) { // special case for pending logs if beginPending && !endPending { - return nil, errors.New("invalid block range") + return nil, errInvalidBlockRange } // Short-cut if all we care about is pending logs