Skip to content

Dispose of Wallet Connect instances properly #734

Description

@robGG1997

Summary
Currently we're using a static SignClient instance in WalletConnectCustomProvider to preserve it through termination/logout since disposing of the WalletConnectCore or WalletConnectSignClient causes Unity to quit/exit. This was a known bug among the Wallet Connect team and it has been fixed on the latest version of WalletConnectSharp v2.1.6

Suggested features or ways to address the summary
Remove said static instance and dispose of it during terminate/logout properly.

Motivation
This allows for a cleaner implementation and avoids the WalletConnectCore already initialized error when trying to login more than once.

Acceptance Criteria

  • Remove said static instance
  • Dispose of said instances during terminate/logout/disconnect.

Blockers
(OPTIONAL) [Do you see any blocker that needs to be done before implementing this feature?]

Additional context
(OPTIONAL) [Add any other context or screenshots/videos about the feature request here.]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementAdded to issues and PRs when a change includes improvements or optimizations.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions