@leofcoin/launch-chain 0.1.1 → 0.1.2

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.
package/exports/launch.js CHANGED
@@ -82,14 +82,14 @@ const launch = async (options = {ws, http, network: 'leofcoin:peach'}) => {
82
82
  let chain
83
83
  let mode
84
84
 
85
- if (clients) {
85
+ if (clients.http || clients.ws) {
86
86
  Object.entries(clients).forEach(([key, value]) => {
87
87
  if (value) endpoints[key] = options[key].url
88
88
  })
89
89
  mode = 'remote'
90
90
  } else {
91
- await new Node({ network })
92
- await nodeConfig({ network })
91
+ await new Node({ network: options.network })
92
+ await nodeConfig({ network: options.network })
93
93
 
94
94
  chain = await new Chain()
95
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/launch-chain",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": "./exports/launch.js"