Skip to content

Commit

Permalink
return total number of transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
virajbhartiya committed Oct 21, 2024
1 parent 9ea444f commit fca2f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/impl/full/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ func (a *EthAPI) getTransactionByTipsetAndIndex(ctx context.Context, ts *types.T
}

if uint64(index) >= uint64(len(msgs)) {
return nil, xerrors.Errorf("index out of range")
return nil, xerrors.Errorf("index %d out of range: tipset contains %d messages", index, len(msgs))
}

msg := msgs[index]
Expand Down

0 comments on commit fca2f80

Please sign in to comment.