add ominflix
This commit is contained in:
parent
c8b52f99db
commit
b9bb8e48a8
@ -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}`)
|
||||
|
@ -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
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user