Skip to content

Commit

Permalink
🩹 Increase gas fee
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 committed Dec 28, 2023
1 parent 694d0f5 commit d3d3b49
Show file tree
Hide file tree
Showing 2 changed files with 11 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_FEE = 300000;

export const ISCN_REGISTRY_NAME = 'likecoin-chain';

Expand Down
11 changes: 10 additions & 1 deletion utils/cosmos/iscn/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ISCNSignPayload, ISCNSigningClient } from '@likecoin/iscn-js';
import network from '@/constant/network';
import { DeliverTxResponse } from '@cosmjs/stargate';
import { ISCNRegisterPayload } from './iscn.type';
import { WALLET_TYPE_REPLACER, ISCN_GAS_FEE, DEFAULT_GAS_PRICE } from '~/constant'
import { WALLET_TYPE_REPLACER, ISCN_GAS_FEE, DEFAULT_GAS_PRICE, UPDATE_ISCN_GAS_FEE } from '~/constant'
import { getPublisherISCNPayload } from '.';
import { ISCN_PUBLISHERS } from '~/constant/iscn';

Expand Down Expand Up @@ -201,6 +201,15 @@ export async function updateISCNRecord(
address,
iscnId,
payload,
{
fee: {
gas: UPDATE_ISCN_GAS_FEE.toString(),
amount: [{
denom: DEFAULT_GAS_PRICE[0].denom,
amount: DEFAULT_GAS_PRICE[0].amount.toString(),
}],
},
},
)

const res = await signingPromise
Expand Down

0 comments on commit d3d3b49

Please sign in to comment.