From 9d02b35e231d45ed3fe9d10a1f95edd16f83b657 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 {