@hashgraphonline/hashinal-wc 1.0.76 → 1.0.79

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/README.md CHANGED
@@ -26,7 +26,7 @@ This SDK provides a simple interface for interacting with the Hedera Hashgraph u
26
26
  No installation needed. Reference the script directly in your HTML:
27
27
 
28
28
  ```html
29
- <script data-src="hcs://1/0.0.7337015" data-script-id="wallet-connect"></script>
29
+ <script data-src="hcs://1/0.0.7473819" data-script-id="wallet-connect"></script>
30
30
  ```
31
31
 
32
32
  ### For NPM projects (ESM)
@@ -530,6 +530,7 @@ Version 1.0.58 and onward correlate with the NPM Package version.
530
530
  | v1.0.62 | 0.0.7111719 | UMD |
531
531
  | v1.0.64 | 0.0.7153927 | UMD |
532
532
  | v1.0.71 | 0.0.7337015 | UMD |
533
+ | v1.0.79 | 0.0.7473819 | UMD |
533
534
 
534
535
  ## Contributing
535
536
 
@@ -1866,6 +1866,7 @@ class HashinalsWalletConnectSDK {
1866
1866
  logger: "error"
1867
1867
  });
1868
1868
  HashinalsWalletConnectSDK.dAppConnectorInstance.onSessionIframeCreated = (session) => {
1869
+ this.logger.info("new session from from iframe", session);
1869
1870
  this.handleNewSession(session);
1870
1871
  if (onSessionIframeCreated) {
1871
1872
  onSessionIframeCreated(session);
@@ -2191,7 +2192,8 @@ class HashinalsWalletConnectSDK {
2191
2192
  localStorage.removeItem("connectedAccountId");
2192
2193
  localStorage.removeItem("connectedNetwork");
2193
2194
  } else {
2194
- localStorage.setItem("connectedNetwork", connectedNetwork);
2195
+ const cleanNetwork = connectedNetwork == null ? void 0 : connectedNetwork.replace(/['"]+/g, "");
2196
+ localStorage.setItem("connectedNetwork", cleanNetwork);
2195
2197
  localStorage.setItem("connectedAccountId", accountId);
2196
2198
  }
2197
2199
  }