quantum-coin-js-sdk 1.0.22 → 1.0.23

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.
@@ -1,6 +1,6 @@
1
1
  const qcsdk = require('quantum-coin-js-sdk');
2
2
 
3
- var clientConfigVal = new qcsdk.Config("https://sdk.readrelay.quantumcoinapi.com", "https://sdk.writerelay.quantumcoinapi.com", 123123, "", ""); //Mainnet
3
+ //var clientConfigVal = new qcsdk.Config("https://sdk.readrelay.quantumcoinapi.com", "https://sdk.writerelay.quantumcoinapi.com", 123123, "", ""); //Mainnet
4
4
 
5
5
 
6
6
  //Initialize the client configuration
@@ -17,7 +17,7 @@ var clientConfigVal = new qcsdk.Config("https://sdk.readrelay.quantumcoinapi.com
17
17
 
18
18
 
19
19
  //Initialize the SDK
20
- qcsdk.initialize(clientConfigVal).then((initResult) => {
20
+ qcsdk.initialize(undefined).then((initResult) => {
21
21
  if (initResult === false) {
22
22
  console.error("Initialize failed");
23
23
  return;
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "..": {
18
- "version": "1.0.21",
18
+ "version": "1.0.22",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
21
  "jsdoc-to-markdown": "^9.1.2",
package/index.js CHANGED
@@ -702,11 +702,10 @@ async function initialize(clientConfig) {
702
702
  return false;
703
703
  }
704
704
  if (clientConfig === null || clientConfig === undefined) {
705
- clientConfig = Config("https://sdk.readrelay.quantumcoinapi.com", "https://sdk.writerelay.quantumcoinapi.com", 123123, "", ""); //default
706
- } else {
707
- if (clientConfig.readUrl === null || clientConfig.writeUrl === null || clientConfig.chainId === null) {
708
- return false;
709
- }
705
+ clientConfig = new Config("https://sdk.readrelay.quantumcoinapi.com", "https://sdk.writerelay.quantumcoinapi.com", 123123, "", ""); //default
706
+ }
707
+ if (clientConfig.readUrl === null || clientConfig.writeUrl === null || clientConfig.chainId === null) {
708
+ return false;
710
709
  }
711
710
  await InitAccountsWebAssembly();
712
711
  config = clientConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-coin-js-sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Quantum Coin - Q SDK in JavaScript",
5
5
  "main": "index.js",
6
6
  "scripts": {