suidouble 1.13.0-1 → 1.13.0-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.
@@ -205,7 +205,7 @@ class SuiInBrowser extends SuiCommonMethods {
205
205
  // https://github.com/MystenLabs/sui/blob/827f1138a09190975172ec99389751ca95cce5df/sdk/typescript/src/rpc/connection.ts#L32
206
206
 
207
207
  if (this._rpcSettings) {
208
- this._rpcSettings.providerName = chainName;
208
+ this._rpcSettings.providerName = chainName.split('sui:').join('');
209
209
  this._client = SuiMaster.SuiUtils.suiClientForRPC(this._rpcSettings);
210
210
  } else if (!chainSettings[chainName]) {
211
211
  this.log('error', 'invalid chain', chainName);
package/lib/SuiUtils.js CHANGED
@@ -187,7 +187,7 @@ class SuiUtils extends SuiCommonMethods {
187
187
 
188
188
  if (clientParam.providerName) {
189
189
  providerName = clientParam.providerName;
190
- if (['devnet', 'mainnet', 'testnet', 'localnet'].indexOf(clientParam.providerName) === -1) {
190
+ if (['devnet', 'mainnet', 'testnet', 'localnet'].indexOf(clientParam.providerName) != -1) {
191
191
  providerName = 'sui:'+clientParam.providerName; // no prefix - add prefix
192
192
  }
193
193
  } else if (url.indexOf('devnet') !== -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suidouble",
3
- "version": "1.13.0-1",
3
+ "version": "1.13.0-2",
4
4
  "description": "Set of provider, package and object classes for javascript representation of Sui Move smart contracts. Use same code for publishing, upgrading, integration testing, interaction with smart contracts and integration in browser web3 dapps",
5
5
  "main": "index.js",
6
6
  "scripts": {