From c5b74b6c0a41f5a036d642fe2399770b2ca5469b Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Wed, 12 Jul 2023 16:52:39 +0800 Subject: [PATCH] fix : TestGraphQLConcurrentResolvers --- graphql/graphql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql/graphql.go b/graphql/graphql.go index 000225c18e..29f5a4faff 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -541,7 +541,7 @@ func (t *Transaction) getLogs(ctx context.Context, hash common.Hash) (*[]*Log, e return nil, err } - ret := make([]*Log, len(logs)) + var ret []*Log // Select tx logs from all block logs ix := sort.Search(len(logs), func(i int) bool { return uint64(logs[i].TxIndex) >= t.index }) for ix < len(logs) && uint64(logs[ix].TxIndex) == t.index {