fix : TestGraphQLConcurrentResolvers

This commit is contained in:
Shivam Sharma 2023-07-12 16:52:39 +08:00
parent ddce55e2fb
commit c5b74b6c0a

View file

@ -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 {