Skip to content

Commit

Permalink
fix(namadillo): displaying all validators (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende authored Dec 1, 2024
1 parent b09a16e commit 67704d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/namadillo/src/atoms/validators/services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
DefaultApi,
ValidatorStatus as IndexerValidatorStatus,
VotingPower as IndexerVotingPower,
MergedBond,
Unbond,
Expand All @@ -23,10 +22,7 @@ export const fetchAllValidators = async (
votingPower: IndexerVotingPower
): Promise<Validator[]> => {
const nominalApr = chainParameters.apr;
const validatorsResponse = await api.apiV1PosValidatorAllGet([
IndexerValidatorStatus.Consensus,
]);

const validatorsResponse = await api.apiV1PosValidatorAllGet();
const validators = validatorsResponse.data;
return validators.map((v) =>
toValidator(v, votingPower, chainParameters.unbondingPeriod, nominalApr)
Expand Down

1 comment on commit 67704d1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.