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
4import 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';
78
89
9const 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;
1213
modifiedtests/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 } = {