Update process for nftbapp

This commit is contained in:
elegant651
2020-03-25 16:58:38 +09:00
parent 8072a65374
commit 6a95428c6b
6 changed files with 129 additions and 77 deletions

View File

@@ -32,37 +32,11 @@ export default {
},
methods: {
getAuctions() {
async getAuctions() {
const klaytn = new KlaytnService()
klaytn.getAuctions((auctions) => {
auctions.forEach(auction => {
console.log(auction)
})
})
// this.ciAuctions.getCount({}, (error, result) => {
// const count = result
// for(let i=0; i<count; i++) {
// this.ciAuctions.getAuctionById(i, {}, (err, result) => {
// this.ciMyNFT.ownerOf(result[3], {}, (error, owner) => {
// this.auctions.push({
// title: result[0],
// price: this.$web3.fromWei(result[1], 'ether'),
// image: 'https://gateway.ipfs.io/ipfs/'+result[2],
// tokenId: result[3],
// owner: owner,
// active: result[6],
// finalized: result[7]
// })
// })
// })
// }
// })
klaytn.getAuctions((auctions) => {
this.auctions = auctions
})
}
}
}