From 4143eb60b38e9c8c8084e4a6d331cb4b518e1eca Mon Sep 17 00:00:00 2001 From: ucwong Date: Wed, 8 Nov 2023 21:12:41 +0800 Subject: [PATCH] reused error msg --- ctxc/filters/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctxc/filters/filter.go b/ctxc/filters/filter.go index 944ce7e9c6..b19690499d 100644 --- a/ctxc/filters/filter.go +++ b/ctxc/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