diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 1ef4a36be3b4..e6346d36b320 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2225,7 +2225,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]