diff --git a/test/cli.test.ts b/test/cli.test.ts index 8ab2e7e..22bab44 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -2,6 +2,8 @@ import fs from 'fs'; import assert from 'assert'; import { spawnSync } from 'child_process'; +import { DENOM } from '@cerc-io/registry-sdk'; + import { CHAIN_ID, TOKEN_TYPE, @@ -398,7 +400,7 @@ describe('Test laconic CLI commands', () => { chainId: CHAIN_ID, auctionId: testAuctionId, bidderAddress: testAccount, - bidAmount: `${bidAmount}alnt` + bidAmount: `${bidAmount}${DENOM}` }); }, (AUCTION_COMMIT_DURATION + 5) * 1000); }); diff --git a/test/helpers.ts b/test/helpers.ts index 0a1e733..d293e44 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -2,8 +2,10 @@ import fs from 'fs'; import yaml from 'js-yaml'; import { SpawnSyncReturns, spawnSync } from 'child_process'; +import { DENOM } from '@cerc-io/registry-sdk'; + export const CHAIN_ID = 'laconic_9000-1'; -export const TOKEN_TYPE = 'alnt'; +export const TOKEN_TYPE = DENOM; export const AUCTION_FEES = { commit: 1000000, diff --git a/test/run-tests.sh b/test/run-tests.sh index ed33d19..4e0b4ec 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -3,6 +3,9 @@ set -e set -u +# Define the token denomination +DENOM="alnt" + # Wait for the laconid endpoint to come up docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api" @@ -28,7 +31,7 @@ services: bondId: chainId: $cosmos_chain_id gas: 200000 - fees: 200000alnt + fees: 200000$DENOM EOL ) echo "$config" > "$config_file"