suidouble 0.0.3 → 0.0.5

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.
@@ -20,14 +20,14 @@ class SuiCliCommands {
20
20
  throw new Error('can not spawn a proccess in this env');
21
21
  }
22
22
 
23
- const process = doSpawn(command, [], {
23
+ const proc = doSpawn(command, [], {
24
24
  env: {
25
25
  ...process.env,
26
26
  ...envVars,
27
27
  }
28
28
  });
29
29
 
30
- return process;
30
+ return proc;
31
31
  }
32
32
 
33
33
  static async exec(command) {
package/lib/SuiMaster.js CHANGED
@@ -42,6 +42,11 @@ class SuiMaster extends SuiCommonMethods {
42
42
  } else if (params.provider == 'dev' || params.provider == 'devnet') {
43
43
  this._provider = new sui.JsonRpcProvider(sui.devnetConnection);
44
44
  this._providerName = 'dev';
45
+ } else if (params.provider == 'main' || params.provider == 'mainnet') {
46
+ this._provider = new sui.JsonRpcProvider(sui.mainnetConnection);
47
+ this._providerName = 'main';
48
+
49
+ this.log('we are on the mainnet, working with real money, be careful');
45
50
  } else {
46
51
  if (params.provider && params.provider.connection && params.provider.connection.fullnode) {
47
52
  this._provider = params.provider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suidouble",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {