Skip to content

Commit

Permalink
🚑️ Fix gas is overestimated by 9 digit
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 17, 2023
1 parent bc145da commit 68a0b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = iscnGasNanolike.toFixed(0);
}
handleSignDialogClose() {
Expand Down Expand Up @@ -1439,7 +1439,7 @@ export default class IscnRegisterForm extends Vue {
formatISCNTxPayload(this.payload),
this.signer,
this.address,
{ gas: this.iscnGasFee },
{ gas: new BigNumber(this.iscnGasFee).shiftedBy(-9).toFixed(0) },
)
this.uploadStatus = 'success'
this.$emit('txBroadcasted', res)
Expand Down

0 comments on commit 68a0b1c

Please sign in to comment.