@hashgraph/hedera-wallet-connect 1.3.7-canary.6c467f9.0 → 1.3.7-canary.6c7f07a.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,9 +49,8 @@ export class DAppSigner {
49
49
  return allNodes.slice(0, numberOfNodes);
50
50
  }
51
51
  request(request) {
52
- if (this.extensionId) {
52
+ if (this.extensionId)
53
53
  extensionOpen(this.extensionId);
54
- }
55
54
  return this.signClient.request({
56
55
  topic: this.topic,
57
56
  request,
@@ -99,20 +99,17 @@ export class DAppConnector {
99
99
  if (!this.projectId) {
100
100
  throw new Error('Project ID is not defined');
101
101
  }
102
- const signClient = await SignClient.init({
102
+ this.walletConnectClient = await SignClient.init({
103
103
  logger,
104
104
  relayUrl: 'wss://relay.walletconnect.com',
105
105
  projectId: this.projectId,
106
106
  metadata: this.dAppMetadata,
107
107
  });
108
- this.walletConnectClient = signClient;
109
108
  const existingSessions = this.walletConnectClient.session.getAll();
110
- if (existingSessions.length > 0) {
109
+ if (existingSessions.length > 0)
111
110
  this.signers = existingSessions.flatMap((session) => this.createSigners(session));
112
- }
113
- else {
114
- await this.checkIframeConnect();
115
- }
111
+ else
112
+ this.checkIframeConnect();
116
113
  this.walletConnectClient.on('session_event', (event) => {
117
114
  // Handle session events, such as "chainChanged", "accountsChanged", etc.
118
115
  this.logger.debug('Session event received:', event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashgraph/hedera-wallet-connect",
3
- "version": "1.3.7-canary.6c467f9.0",
3
+ "version": "1.3.7-canary.6c7f07a.0",
4
4
  "description": "A library to facilitate integrating Hedera with WalletConnect",
5
5
  "repository": {
6
6
  "type": "git",