From 6f78409b253977b72cf2e5bde0017a1023994235 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Sun, 24 Apr 2022 23:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=BD=BD=E5=85=A5mynft?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=97=B6,=20=E6=B2=A1=E6=9C=89=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E8=8E=B7=E5=8F=96=E7=8A=B6=E6=80=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chain/ChainManager.ts | 2 +- src/views/desktop/MyNft.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chain/ChainManager.ts b/src/chain/ChainManager.ts index f64eb32..477884b 100644 --- a/src/chain/ChainManager.ts +++ b/src/chain/ChainManager.ts @@ -223,7 +223,7 @@ export default class ChainManager { .activateOne(nftOld, nftNew, nftType, nonce, signature) .estimateGas({ gas: 1000000 }) console.log('nftProxyInstance activateOne need gas: ', gas) - return nftProxyInstance.methods.activateOne(nftOld, nftNew, nftType, nonce, signature).send({ gas: gas * 1.1 }) + return nftProxyInstance.methods.activateOne(nftOld, nftNew, nftType, nonce, signature).send({ gas: (gas * 1.1) | 0 }) } public async transferToAccount({ to, amount, chainId, address } : { diff --git a/src/views/desktop/MyNft.vue b/src/views/desktop/MyNft.vue index 73354f6..b4eefba 100644 --- a/src/views/desktop/MyNft.vue +++ b/src/views/desktop/MyNft.vue @@ -125,6 +125,7 @@ export default class MyNft extends Vue { console.log('account change: ', AppModule.accountId) if (this.accountId) { this.fetchDatas(this.currentPage) + this.checkOrderHistory() } }