diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index e1e14699..89540541 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -770,7 +770,7 @@ func paginate[T any](data []T, pagination *query.PageRequest) ([]T, *query.PageR paginatedItems := data[start:end] if countTotal { - return paginatedItems, &query.PageResponse{Total: end - start} + return paginatedItems, &query.PageResponse{Total: totalItems} } else { return paginatedItems, nil }