From 23de9564516939c51f2607ab759adb13fbc36776 Mon Sep 17 00:00:00 2001 From: Ivan Shukhov <45999338+ivanshukhov@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:21:26 +0100 Subject: [PATCH] fix: adjust getBankTotal function to support v0.46.3+ with new query --- src/libs/fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index 4ea24d81..6e14334f 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -145,7 +145,7 @@ export default class ChainFetch { } async getBankTotal(denom) { - if (compareVersions(this.config.sdk_version, '0.46.5') > 0) { + if (compareVersions(this.config.sdk_version, '0.46.2') > 0) { return this.get(`/cosmos/bank/v1beta1/supply/by_denom?denom=${denom}`).then(data => commonProcess(data).amount) } if (compareVersions(this.config.sdk_version, '0.40') < 0) {