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() } }