difftreelog
fix use config.ts for endpoints
in: master
2 files changed
tests/src/migrations/942057-appPromotion/lockedToFreeze.tsdiffbeforeafterboth4import path, {dirname} from 'path';4import path, {dirname} from 'path';5import {isInteger, parse} from 'lossless-json';5import {isInteger, parse} from 'lossless-json';6import {fileURLToPath} from 'url';6import {fileURLToPath} from 'url';7import config from '../../config';78899const WS_ENDPOINT = 'ws://localhost:9944';10const WS_ENDPOINT = config.substrateUrl;10const DONOR_SEED = '//Alice';11const DONOR_SEED = '//Alice';11const UPDATE_IF_VERSION = 942057;12const UPDATE_IF_VERSION = 942057;1213tests/src/migrations/correctStateAfterMaintenance.tsdiffbeforeafterboth--- 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 } = {