From cb11ecaccf2549a8092f45e460ff9e5475ca6109 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Wed, 31 Aug 2022 20:03:42 +0800 Subject: [PATCH] reduce gov size --- src/libs/fetch.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index d4cf1e21..5e200f87 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -352,10 +352,9 @@ export default class ChainFetch { async getGovernanceList(next = '', chain = null) { const key = next || '' const url = this.config.chain_name === 'shentu' - ? `/shentu/gov/v1alpha1/proposals?pagination.limit=50&pagination.reverse=true&pagination.key=${key}` - : `/cosmos/gov/v1beta1/proposals?pagination.limit=50&pagination.reverse=true&pagination.key=${key}` + ? `/shentu/gov/v1alpha1/proposals?pagination.limit=20&pagination.reverse=true&pagination.key=${key}` + : `/cosmos/gov/v1beta1/proposals?pagination.limit=20&pagination.reverse=true&pagination.key=${key}` return this.get(url, chain).then(data => { - // const pool = new StakingPool().init(commonProcess(data[1])) let proposals = commonProcess(data) if (Array.isArray(proposals.proposals)) { proposals = proposals.proposals