forked from cerc-io/cosmos-explorer
custom adaptar
This commit is contained in:
parent
ef39c448cb
commit
895e611c39
@ -163,10 +163,10 @@ export class CosmosRestClient extends BaseRestClient<RequestRegistry> {
|
|||||||
async getGovProposalTally(proposal_id: string) {
|
async getGovProposalTally(proposal_id: string) {
|
||||||
return this.request(this.registry.gov_proposals_tally, { proposal_id }, undefined, (source: any) => {
|
return this.request(this.registry.gov_proposals_tally, { proposal_id }, undefined, (source: any) => {
|
||||||
return {tally: {
|
return {tally: {
|
||||||
yes: source.yes || source.yes_count,
|
yes: source.tally.yes || source.tally.yes_count,
|
||||||
abstain: source.abstain || source.abstain_count,
|
abstain: source.tally.abstain || source.tally.abstain_count,
|
||||||
no: source.no || source.no_count,
|
no: source.tally.no || source.tally.no_count,
|
||||||
no_with_veto: source.no_with_veto || source.no_with_veto_count,
|
no_with_veto: source.tally.no_with_veto || source.tally.no_with_veto_count,
|
||||||
}};
|
}};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user