@leofcoin/launch-chain 0.4.16 → 0.4.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/exports/index.js +4 -2
  2. package/package.json +1 -1
package/exports/index.js CHANGED
@@ -108,7 +108,8 @@ const launch = async (options, password) => {
108
108
  throw new Error(`no remotes connected`);
109
109
  }
110
110
  else if (options.mode === 'direct') {
111
- await new Node({ network: options.network, stars: options.stars, networkVersion: options.networkVersion }, password);
111
+ const node = new Node({ network: options.network, stars: options.stars, networkVersion: options.networkVersion }, password);
112
+ await node.ready;
112
113
  await nodeConfig({ network: options.network, networkVersion: options.networkVersion });
113
114
  chain = new Chain({ network: options.network, stars: options.stars, networkVersion: options.networkVersion });
114
115
  await chain.ready;
@@ -138,7 +139,8 @@ const launch = async (options, password) => {
138
139
  }
139
140
  }
140
141
  else {
141
- await new Node({ network: options.network, stars: options.stars, networkVersion: options.networkVersion }, password);
142
+ const node = new Node({ network: options.network, stars: options.stars, networkVersion: options.networkVersion }, password);
143
+ await node.ready;
142
144
  await nodeConfig({ network: options.network, networkVersion: options.networkVersion });
143
145
  chain = new Chain({ network: options.network, stars: options.stars, networkVersion: options.networkVersion });
144
146
  await chain.ready;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/launch-chain",
3
- "version": "0.4.16",
3
+ "version": "0.4.18",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {