Skip to content

Commit

Permalink
fix gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
yarkinwho committed Sep 27, 2023
1 parent 2ae91a4 commit f12974d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f12974d

Please sign in to comment.