From b22c40f023bec6cc6868e9b3480ee41e5d1af209 Mon Sep 17 00:00:00 2001 From: Andrey Bocharnikov Date: Fri, 11 Oct 2024 11:41:27 +0400 Subject: [PATCH] chore_: fix tests --- rpc/client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rpc/client.go b/rpc/client.go index a06326282..0ac3d5678 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -377,10 +377,9 @@ func (c *Client) CallContextIgnoringLocalHandlers(ctx context.Context, result in if c.router.routeRemote(method) { client, err := c.getClientUsingCache(chainID) - if err != nil { - return err + if err == nil { + return client.CallContext(ctx, result, method, args...) } - return client.CallContext(ctx, result, method, args...) } if c.local == nil {