From 895e611c39d16d71506a5f149f7a1a6e16e2658c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 11 Jan 2024 14:36:20 +0800 Subject: [PATCH] custom adaptar --- src/libs/client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/client.ts b/src/libs/client.ts index 5f54c89f..359ac486 100644 --- a/src/libs/client.ts +++ b/src/libs/client.ts @@ -163,10 +163,10 @@ export class CosmosRestClient extends BaseRestClient { async getGovProposalTally(proposal_id: string) { return this.request(this.registry.gov_proposals_tally, { proposal_id }, undefined, (source: any) => { return {tally: { - yes: source.yes || source.yes_count, - abstain: source.abstain || source.abstain_count, - no: source.no || source.no_count, - no_with_veto: source.no_with_veto || source.no_with_veto_count, + yes: source.tally.yes || source.tally.yes_count, + abstain: source.tally.abstain || source.tally.abstain_count, + no: source.tally.no || source.tally.no_count, + no_with_veto: source.tally.no_with_veto || source.tally.no_with_veto_count, }}; }); }