From 9fef3687a054fa9ea17bf3cf348a476c24ad4d18 Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Thu, 30 Sep 2021 19:13:50 +0530 Subject: [PATCH] Address comments. --- pkg/eth/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/eth/api.go b/pkg/eth/api.go index d1dc2764..a05f5d6c 100644 --- a/pkg/eth/api.go +++ b/pkg/eth/api.go @@ -923,7 +923,7 @@ func (pea *PublicEthAPI) Call(ctx context.Context, args CallArgs, blockNrOrHash if err != nil && pea.rpc != nil { var hex hexutil.Bytes - if err = pea.rpc.CallContext(ctx, &hex, "eth_call", args, blockNrOrHash, overrides); hex != nil && err == nil { + if err := pea.rpc.CallContext(ctx, &hex, "eth_call", args, blockNrOrHash, overrides); hex != nil && err == nil { go pea.writeStateDiffAtOrFor(blockNrOrHash) return hex, nil }