From 010550f13e173b1c7b63a631682f7eaf660db927 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:36:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E9=80=9Alisting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/assets/card.vue | 4 ++-- src/wallet/passPort.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/assets/card.vue b/src/components/assets/card.vue index ab6e220..eadd78a 100644 --- a/src/components/assets/card.vue +++ b/src/components/assets/card.vue @@ -49,14 +49,14 @@ const props = defineProps({ const buyDialogVisible = ref(false) const buyDataArr = ref([]) - +const currency = import.meta.env.VUE_APP_MARKET_CURRENCY // 出售NFT const sellNft = async (val) => { const data = { // import.meta.env.VUE_APP_PASSPORT_MARKET_ADDRESS contractAddress: val.contract_address, tokenId: val.token_id, - currencyAddress: val.owner_address, + currencyAddress: currency, currencyAmount: '1000000000000000000' } // buyDataArr.value.push(val) diff --git a/src/wallet/passPort.js b/src/wallet/passPort.js index a5183c3..521a951 100644 --- a/src/wallet/passPort.js +++ b/src/wallet/passPort.js @@ -27,7 +27,9 @@ class LPassportWallet { disableBlockedPopupOverlay: false, // Set to true to disable the blocked pop-up overlay } }); - this.passportInstance.loginCallback(); + this.passportInstance.loginCallback().then(()=>{}).catch(err=>{ + console.log(err.message) + }) this.client = new orderbook.Orderbook({ baseConfig }); } async initWidget() { From 69f806ed6870d2773b298cd74e833c6dbddd5942 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:36:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.dev b/.env.dev index b4d3c40..d383a3b 100644 --- a/.env.dev +++ b/.env.dev @@ -11,3 +11,4 @@ VUE_APP_PASSPORT_CLIENT_ID=0FNfXxQywm7wjdbyLTDzWt4txc53yRrT VUE_APP_PASSPORT_MARKET_ADDRESS=0x7d117aA8BD6D31c4fa91722f246388f38ab1942c VUE_APP_MKT_API='https://market-test.kingsome.cn' VUE_APP_NET_ID='13473' +VUE_APP_MARKET_CURRENCY='0xFd42bfb03212dA7e1A4608a44d7658641D99CF34'