diff --git a/src/layouts/components/ChainProfile.vue b/src/layouts/components/ChainProfile.vue
index 24926b11..ac37ff08 100644
--- a/src/layouts/components/ChainProfile.vue
+++ b/src/layouts/components/ChainProfile.vue
@@ -44,7 +44,7 @@ function changeEndpoint(item: Endpoint) {
-1;
class="w-6 h-6 rounded-full mr-3 ml-4"
/>
DisconnectedDisconnect
diff --git a/src/libs/api.ts b/src/libs/api.ts
index 62356b8d..fcfabe89 100644
--- a/src/libs/api.ts
+++ b/src/libs/api.ts
@@ -66,7 +66,7 @@ export const DEFAULT: RequestRegistry = {
adapter,
},
gov_proposals_votes: {
- url: '/cosmos/gov/v1beta1/proposals/{proposal_id}/votes?pagination.key={next_key}',
+ url: '/cosmos/gov/v1beta1/proposals/{proposal_id}/votes',
adapter,
},
gov_proposals_votes_voter: {
diff --git a/src/libs/client.ts b/src/libs/client.ts
index 81979b8e..442d605b 100644
--- a/src/libs/client.ts
+++ b/src/libs/client.ts
@@ -116,11 +116,11 @@ export class CosmosRestClient extends BaseRestClient
{
async getGovProposalTally(proposal_id: string) {
return this.request(this.registry.gov_proposals_tally, { proposal_id });
}
- async getGovProposalVotes(proposal_id: string, next_key?: string) {
- return this.request(this.registry.gov_proposals_votes, {
- proposal_id,
- next_key,
- });
+ async getGovProposalVotes(proposal_id: string, page?: PageRequest) {
+ if(!page) page = new PageRequest()
+ page.reverse = true
+ const query =`?proposal_status={status}&${page.toQueryString()}`;
+ return this.request(this.registry.gov_proposals_votes, { proposal_id }, query);
}
async getGovProposalVotesVoter(proposal_id: string, voter: string) {
return this.request(this.registry.gov_proposals_votes_voter, {
diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue
index 1977ccf0..c3d5f4fe 100644
--- a/src/modules/[chain]/gov/[proposal_id].vue
+++ b/src/modules/[chain]/gov/[proposal_id].vue
@@ -1,4 +1,5 @@
@@ -325,7 +333,7 @@ const processList = computed(() => {
- {{ item.voter }} |
+ {{ showValidatorName(item.voter) }} |
- {{ item.option }}
+ {{ String(item.option).replace("VOTE_OPTION_", "") }}
|
-
-
+