add ominflix

This commit is contained in:
liangping 2023-03-05 08:44:45 +08:00
parent c8b52f99db
commit b9bb8e48a8
2 changed files with 9 additions and 1 deletions

View File

@ -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}`)

View File

@ -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
})
}
},
},