@@ -15,39 +15,41 @@ export async function checkZombieBins(config: LaunchConfig) {
1515 await checkExists ( relayBinPath ) ;
1616 checkAccess ( relayBinPath ) ;
1717
18- const promises = config . parachains . map ( ( para ) => {
19- if ( para . collator ) {
20- if ( ! para . collator . command ) {
21- throw new Error (
22- "No command found for collator, please check your zombienet config file for collator command"
23- ) ;
24- }
25- checkExists ( para . collator . command ) ;
26- checkAccess ( para . collator . command ) ;
27- }
28-
29- if ( para . collators ) {
30- for ( const coll of para . collators ) {
31- if ( ! coll . command ) {
18+ if ( config . parachains ) {
19+ const promises = config . parachains . map ( ( para ) => {
20+ if ( para . collator ) {
21+ if ( ! para . collator . command ) {
3222 throw new Error (
33- "No command found for collators , please check your zombienet config file for collators command"
23+ "No command found for collator , please check your zombienet config file for collator command"
3424 ) ;
3525 }
36- checkExists ( coll . command ) ;
37- checkAccess ( coll . command ) ;
26+ checkExists ( para . collator . command ) ;
27+ checkAccess ( para . collator . command ) ;
3828 }
39- // para.collators.forEach((coll) => {
40- // if (!coll.command) {
41- // throw new Error(
42- // "No command found for collators, please check your zombienet config file for para collators command"
43- // );
44- // }
45- // checkExists(coll.command);
46- // checkAccess(coll.command);
47- // });
48- }
49- } ) ;
50- await Promise . all ( promises ) ;
29+
30+ if ( para . collators ) {
31+ for ( const coll of para . collators ) {
32+ if ( ! coll . command ) {
33+ throw new Error (
34+ "No command found for collators, please check your zombienet config file for collators command"
35+ ) ;
36+ }
37+ checkExists ( coll . command ) ;
38+ checkAccess ( coll . command ) ;
39+ }
40+ // para.collators.forEach((coll) => {
41+ // if (!coll.command) {
42+ // throw new Error(
43+ // "No command found for collators, please check your zombienet config file for para collators command"
44+ // );
45+ // }
46+ // checkExists(coll.command);
47+ // checkAccess(coll.command);
48+ // });
49+ }
50+ } ) ;
51+ await Promise . all ( promises ) ;
52+ }
5153}
5254
5355export function getZombieConfig ( path : string ) {
0 commit comments