diff --git a/src/config.test.ts b/src/config.test.ts index 6516889..6e81f0d 100644 --- a/src/config.test.ts +++ b/src/config.test.ts @@ -23,7 +23,7 @@ const configTests = () => { test('StdFee fees with gas price not set', async () => { const testFees = { - amount: [{ denom: 'alnt', amount: '400000' }], + amount: [{ denom: DENOM, amount: '400000' }], gas: '400000' }; @@ -37,12 +37,12 @@ const configTests = () => { test('StdFee fees with gas price set', async () => { const testFees = { - amount: [{ denom: 'alnt', amount: '400000' }], + amount: [{ denom: DENOM, amount: '400000' }], gas: '400000' }; // Set gas price lower than min gas price - const testGasPrice = GasPrice.fromString(String('0.00001alnt')); + const testGasPrice = GasPrice.fromString(`0.00001${DENOM}`); const registry = new Registry(gqlEndpoint, rpcEndpoint, { chainId, gasPrice: testGasPrice }); // Send a bond creation tx @@ -55,7 +55,7 @@ const configTests = () => { test('Gas price with fees not set (default gas estimation multiplier)', async () => { // Set gas price - const testGasPrice = GasPrice.fromString('1alnt'); + const testGasPrice = GasPrice.fromString(`1${DENOM}`); const registry = new Registry(gqlEndpoint, rpcEndpoint, { chainId, gasPrice: testGasPrice }); // Send a bond creation tx @@ -70,7 +70,7 @@ const configTests = () => { const testFees = 2.1; // Set gas price - const testGasPrice = GasPrice.fromString('1alnt'); + const testGasPrice = GasPrice.fromString(`1${DENOM}`); const registry = new Registry(gqlEndpoint, rpcEndpoint, { chainId, gasPrice: testGasPrice }); // Send a bond creation tx diff --git a/src/constants.ts b/src/constants.ts index 1fa6289..1e50bf6 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,4 +1,4 @@ -export const DENOM = 'alnt'; +export const DENOM = 'alps'; export const DEFAULT_GAS_ESTIMATION_MULTIPLIER = 2; export const AUCTION_KIND_VICKREY = 'vickrey'; diff --git a/src/testing/helper.ts b/src/testing/helper.ts index f3d5c81..b4b0913 100644 --- a/src/testing/helper.ts +++ b/src/testing/helper.ts @@ -2,7 +2,7 @@ import assert from 'assert'; import yaml from 'node-yaml'; import semver from 'semver'; -import { Account, Registry } from '../index'; +import { Account, DENOM } from '../index'; const DEFAULT_CHAIN_ID = 'laconic_9000-1'; @@ -30,7 +30,7 @@ export const getConfig = () => { rpcEndpoint: process.env.LACONICD_RPC_ENDPOINT || 'http://localhost:26657', gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api', fee: { - amount: [{ denom: 'alnt', amount: '200000' }], + amount: [{ denom: DENOM, amount: '200000' }], gas: '200000' } };