Skip to content

Commit

Permalink
Fix pairing string is required after a disconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Dinkov committed Jun 27, 2024
1 parent 91e8859 commit 270b950
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 32 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ethers": "^5.7.2",
"graphql": "^16.5.0",
"graphql-request": "^6.0.0",
"hashconnect": "^0.2.4",
"hashconnect": "^0.2.9",
"lodash": "^4.17.21",
"numeral": "^2.0.6",
"qrcode.react": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/hashconnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Hashconnect {
}

clearPairings() {
this.hashconnect.clearConnectionsAndData();
this.hashconnect.disconnect(this.hashconnect.hcData.topic);
this.pairingData = null;
}

Expand Down
Loading

0 comments on commit 270b950

Please sign in to comment.