Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Apr 7, 2024
1 parent 0fbd8f8 commit ff616fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 @@ -270,7 +270,7 @@ func (api *SubqlAPI) resolveFieldSelector(ctx context.Context, fieldSelector *Fi
if fieldSelector.Logs != nil && fieldSelector.Logs.Transaction {
for _, log := range block.Logs {
if _, ok := block.Transactions[hexutil.Uint64(log.TxIndex)]; !ok {
_, tx, _, _ /*blockIndex*/, transactionIndex, err := api.backend.GetTransaction(ctx, log.TxHash)
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
Expand Down
1 change: 1 addition & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,7 @@ func NewRPCTransaction(tx *types.Transaction, header *types.Header, index uint64
index,
header.BaseFee,
config,
nil,
)
}

Expand Down

0 comments on commit ff616fd

Please sign in to comment.