Skip to content

Commit

Permalink
🔀 Merge #437 into deploy/rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Jan 31, 2024
2 parents 251b42c + e27c11e commit 2f51547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions constant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ISCN_MIN_BALANCE = 0.01;

export const ISCN_GAS_FEE = 200000;
export const ISCN_GAS_MULTIPLIER = 1.5;
export const UPDATE_ISCN_GAS_MULTIPLIER = 1.75;

export const ISCN_REGISTRY_NAME = 'likecoin-chain';

Expand Down
4 changes: 3 additions & 1 deletion pages/edit/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
import { Vue, Component } from 'vue-property-decorator'
import { namespace } from 'vuex-class'
import { OfflineSigner } from '@cosmjs/proto-signing'
import { ISCN_PREFIX } from '~/constant'
import { BigNumber } from 'bignumber.js';
import { ISCN_PREFIX, ISCN_GAS_FEE, UPDATE_ISCN_GAS_MULTIPLIER } from '~/constant'
import { logTrackerEvent } from '~/utils/logger'
import { signISCN } from '~/utils/cosmos/iscn/sign'
import { extractIscnIdPrefix } from '~/utils/ui'
Expand Down Expand Up @@ -428,6 +429,7 @@ export default class EditIscnPage extends Vue {
await this.initIfNecessary()
const result = await signISCN(this.payload, this.signer, this.address, {
iscnId: this.iscnId,
gas: new BigNumber(ISCN_GAS_FEE).multipliedBy(UPDATE_ISCN_GAS_MULTIPLIER).toFixed(0),
})
if (result) {
this.$router.replace(
Expand Down

0 comments on commit 2f51547

Please sign in to comment.