diff --git a/config.js b/config.js index 7b8f77f..5657577 100644 --- a/config.js +++ b/config.js @@ -8,6 +8,7 @@ export const BASE_PATH = process.env.BASE_PATH export const INDEXER = IS_TESTNET ? 'https://node.testnet.like.co' : 'https://mainnet-node.like.co' +export const DEFAULT_GAS_PRICE_NUMBER = 10000 export const WALLET_CONFIG = IS_TESTNET ? { chainId: 'likecoin-public-testnet-5', diff --git a/store/wallet.js b/store/wallet.js index 5a23dec..a23601d 100644 --- a/store/wallet.js +++ b/store/wallet.js @@ -1,6 +1,6 @@ import { LikeCoinWalletConnector, LikeCoinWalletConnectorMethod } from '@likecoin/wallet-connector' import { ISCNSigningClient } from '@likecoin/iscn-js' -import { WALLET_CONFIG } from '../config' +import { WALLET_CONFIG, DEFAULT_GAS_PRICE_NUMBER } from '../config' let connector = null @@ -101,6 +101,7 @@ export const actions = { state.walletAddress, iscnId, payload, + { gasPrice: DEFAULT_GAS_PRICE_NUMBER }, ) commit('doneTx', result) } catch (err) { @@ -128,6 +129,7 @@ export const actions = { state.walletAddress, receiver, iscnId, + { gasPrice: DEFAULT_GAS_PRICE_NUMBER }, ) commit('doneTx', result) } catch (err) {