From e105d72c172ccd5d3e25e0b23a293a1d74068dcf Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 02 Oct 2023 15:46:01 +0000 Subject: [PATCH] fix: use config.ts for endpoints --- --- a/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts +++ b/tests/src/migrations/942057-appPromotion/lockedToFreeze.ts @@ -4,9 +4,10 @@ import path, {dirname} from 'path'; import {isInteger, parse} from 'lossless-json'; import {fileURLToPath} from 'url'; +import config from '../../config'; -const WS_ENDPOINT = 'ws://localhost:9944'; +const WS_ENDPOINT = config.substrateUrl; const DONOR_SEED = '//Alice'; const UPDATE_IF_VERSION = 942057; --- a/tests/src/migrations/correctStateAfterMaintenance.ts +++ b/tests/src/migrations/correctStateAfterMaintenance.ts @@ -1,8 +1,9 @@ +import config from '../config'; import {usingPlaygrounds} from '../util'; -const WS_ENDPOINT = 'ws://127.0.0.1:9944'; +const WS_ENDPOINT = config.substrateUrl; const DONOR_SEED = '//Alice'; export const main = async(options: { wsEndpoint: string; donorSeed: string } = { -- gitstuff