git.delta.rocks / unique-network / refs/commits / e105d72c172c

difftreelog

fix use config.ts for endpoints

Daniel Shiposha2023-10-02parent: #57b7f8c.patch.diff
in: master

2 files changed

modifiedtests/src/migrations/942057-appPromotion/lockedToFreeze.tsdiffbeforeafterboth
--- 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;
 
modifiedtests/src/migrations/correctStateAfterMaintenance.tsdiffbeforeafterboth
1import config from '../config';
1import {usingPlaygrounds} from '../util';2import {usingPlaygrounds} from '../util';
23
34
45
5const WS_ENDPOINT = 'ws://127.0.0.1:9944';6const WS_ENDPOINT = config.substrateUrl;
6const DONOR_SEED = '//Alice';7const DONOR_SEED = '//Alice';
78
8export const main = async(options: { wsEndpoint: string; donorSeed: string } = {9export const main = async(options: { wsEndpoint: string; donorSeed: string } = {