From b9bb8e48a84326d7c6828a801c435db95c5822dd Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 5 Mar 2023 08:44:45 +0800 Subject: [PATCH] add ominflix --- src/libs/fetch.js | 4 ++++ src/views/NFTDenom.vue | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/libs/fetch.js b/src/libs/fetch.js index b42b258a..e40090fa 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -103,6 +103,10 @@ export default class ChainFetch { return this.get(`/irismod/nft/denoms/${denom_id}`) } + async getONFTDenom(denom_id) { + return this.get(`/omniflix/onft/v1beta1/denoms/${denom_id}`) + } + async getWasmQuery(contract, query) { const query_data = toBase64(Buffer.from(query)) return this.get(`/cosmwasm/wasm/v1/contract/${contract}/smart/${query_data}`) diff --git a/src/views/NFTDenom.vue b/src/views/NFTDenom.vue index a17fd131..b7132fbb 100644 --- a/src/views/NFTDenom.vue +++ b/src/views/NFTDenom.vue @@ -111,10 +111,14 @@ export default { }) } } - } else { + } else if (this.chainName === 'iris') { this.$http.getNFTDenom(this.tokenId).then(res => { this.data = res.denom }) + } else { + this.$http.getONFTDenom(this.tokenId).then(res => { + this.data = res + }) } }, },