From f12974d4d0d17d4b59f2ae111d3b991445a0c1b8 Mon Sep 17 00:00:00 2001 From: yarkin Date: Thu, 28 Sep 2023 07:05:18 +0800 Subject: [PATCH] fix gas price --- src/views/Home.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/Home.vue b/src/views/Home.vue index f35b3ed..0e20d64 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -534,6 +534,7 @@ export default { if (!window.confirm(this.$t('home.transferConfirm', [this.amount, this.tokenName(), this.targetAddress]))) { return } + this.gasPrice = await this.web3.eth.getGasPrice(); this.gas = await this.web3.eth.estimateGas(await this.prepareTx(null)); var vm = this