Skip to content

Commit

Permalink
Fix error check being in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Sep 9, 2024
1 parent 08e8cbb commit ba90614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/filters/api_subql.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ func (api *SubqlAPI) resolveFieldSelector(ctx context.Context, fieldSelector *Fi
for _, log := range block.Logs {
if _, ok := block.Transactions[hexutil.Uint64(log.TxIndex)]; !ok {
_, tx, _, _ /*blockIndex*/, transactionIndex, err := api.backend.GetTransaction(ctx, log.TxHash)
rpcTx := ethapi.NewRPCTransaction(tx, block.Header, transactionIndex, api.sys.backend.ChainConfig())
if err != nil {
return err
}
rpcTx := ethapi.NewRPCTransaction(tx, block.Header, transactionIndex, api.sys.backend.ChainConfig())
logTxs = append(logTxs, &rpcTx)
}
}
Expand Down

0 comments on commit ba90614

Please sign in to comment.