From 8d64e5c2e06c14198ac74cb7244729a1b0918c1a Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 28 Aug 2022 18:47:46 +0800 Subject: [PATCH] update supply api --- src/libs/fetch.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index 9b78b7b9..25d54338 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -124,10 +124,7 @@ export default class ChainFetch { if (compareVersions(this.config.sdk_version, '0.40') < 0) { return this.get(`/supply/total/${denom}`).then(data => ({ amount: commonProcess(data), denom })) } - if (compareVersions(this.config.sdk_version, '0.46') < 0) { - return this.get(`/bank/total/${denom}`).then(data => commonProcess(data)) - } - return this.get(`/cosmos/bank/v1beta1/supply/${denom}`).then(data => commonProcess(data)) + return this.get(`/cosmos/bank/v1beta1/supply/${denom}`).then(data => commonProcess(data).amount) } async getBankTotals() {