Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove wc session on reconnect forget #1255

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Asmadek
Copy link
Contributor

@Asmadek Asmadek commented Nov 27, 2023

Wallet connect fixes

  • run client.session.delete on session forget
  • run disconnect on session reconnect

Copy link
Contributor

Current coverage report

Summary

Lines Statements Branches Functions
Covered: 0%

Tests which was executed

Tests Skipped Failures Errors Time
13 0 💤 0 ❌ 0 🔥 17.018s ⏱️
Coverage by files (0%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files0000 
   wallet-connect-model.ts000035–459

Copy link
Contributor

Jest Unit tests results

Generic badge

Duration: 74.334 seconds
Start: 2023-11-27 10:50:03.987 UTC
Finish: 2023-11-27 10:51:18.321 UTC
Duration: 74.334 seconds
Outcome: Passed | Total Tests: 372 | Passed: 368 | Failed: 0
Total Test Suites: 137
Total Tests: 372
Failed Test Suites: 0
Failed Tests: 0
Passed Test Suites: 135
Passed Tests: 368
Pending Test Suites: 2
Pending Tests: 4

Copy link
Contributor

@tuul-wq tuul-wq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor suggestions

forward({ from: sessionTopicUpdated, to: sessionTopicUpdatedFx });
sample({
clock: sessionTopicUpdated,
source: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source: $client

@@ -367,18 +381,29 @@ sample({
target: disconnectFx,
});

forward({ from: disconnectFx.done, to: reset });

sample({ clock: disconnectFx.done, fn: ({ params }) => params, target: removeSessionFx });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To increase readability
By the way, can we use forward here?

sample({
  clock: disconnectFx.done,
  fn: ({ params }) => params,
  target: removeSessionFx,
});

@stepanLav stepanLav added CI: internal-build PRs for stage build and removed CI: internal-build PRs for stage build labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants