diff --git a/nftbapp/frontend-nftbapp/src/App.vue b/nftbapp/frontend-nftbapp/src/App.vue index cea8ac3..2feb2de 100644 --- a/nftbapp/frontend-nftbapp/src/App.vue +++ b/nftbapp/frontend-nftbapp/src/App.vue @@ -32,8 +32,7 @@ export default { methods: { ...mapMutations('wallet', [ - 'setKlaytn', - 'setIsConnectWallet', + 'setKlaytn', 'setMyAddress' ]), async connect () { @@ -42,9 +41,6 @@ export default { const address = await klaytn.init() if (address) { this.setMyAddress(address) - this.setIsConnectWallet(true) - } else { - this.setIsConnectWallet(false) } }, } diff --git a/nftbapp/frontend-nftbapp/src/components/Marketplace.vue b/nftbapp/frontend-nftbapp/src/components/Marketplace.vue index cd15e05..9fab8f4 100644 --- a/nftbapp/frontend-nftbapp/src/components/Marketplace.vue +++ b/nftbapp/frontend-nftbapp/src/components/Marketplace.vue @@ -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 { - - // 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 + }) } } } diff --git a/nftbapp/frontend-nftbapp/src/components/MyUpload.vue b/nftbapp/frontend-nftbapp/src/components/MyUpload.vue index 64ad83b..f125a28 100644 --- a/nftbapp/frontend-nftbapp/src/components/MyUpload.vue +++ b/nftbapp/frontend-nftbapp/src/components/MyUpload.vue @@ -10,8 +10,8 @@ type="file" @change="captureFile" /> - UploadImg - + UploadImg + - Submit + Submit
- TransferToCA + + TransferToCA +
- + - +