diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 53678ebf6414..677f3ed5e929 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2231,7 +2231,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(ctx context.Context, ha if err != nil { return nil, err } - if len(receipts) <= int(index) { + if uint64(len(receipts)) <= index { return nil, nil } receipt := receipts[index]