forked from cerc-io/cosmos-explorer
fix: adjust getBankTotal function to support v0.46.3+ with new query
This commit is contained in:
parent
d1bf0dffb0
commit
23de956451
@ -145,7 +145,7 @@ export default class ChainFetch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getBankTotal(denom) {
|
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)
|
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) {
|
if (compareVersions(this.config.sdk_version, '0.40') < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user