From e5c9697aa737e42f9763f9131ea0bfb6c886a9bb Mon Sep 17 00:00:00 2001 From: William Chong Date: Sat, 18 Nov 2023 00:09:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20gas=20is=20overes?= =?UTF-8?q?timated=20by=209=20digit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/IscnRegisterForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/IscnRegisterForm.vue b/components/IscnRegisterForm.vue index c2230a32..680a2f9a 100644 --- a/components/IscnRegisterForm.vue +++ b/components/IscnRegisterForm.vue @@ -1285,7 +1285,7 @@ export default class IscnRegisterForm extends Vue { this.iscnFee = new BigNumber(iscnFeeNanolike) .plus(iscnGasNanolike) .shiftedBy(-9); - this.iscnGasFee = iscnGasNanolike.integerValue().toString(); + this.iscnGasFee = iscnGasEstimation.fee.gas; } handleSignDialogClose() { @@ -1439,7 +1439,7 @@ export default class IscnRegisterForm extends Vue { formatISCNTxPayload(this.payload), this.signer, this.address, - { gas: this.iscnGasFee }, + { gas:this.iscnGasFee }, ) this.uploadStatus = 'success' this.$emit('txBroadcasted', res)