From fca2f8008cc731c8899cf253006829873f6ac81f Mon Sep 17 00:00:00 2001 From: Viraj Bhartiya Date: Mon, 21 Oct 2024 13:11:13 +0530 Subject: [PATCH] return total number of transactions --- node/impl/full/eth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/impl/full/eth.go b/node/impl/full/eth.go index a8f9a1409d..d6de4bdbdb 100644 --- a/node/impl/full/eth.go +++ b/node/impl/full/eth.go @@ -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]