Skip to content

Unable to Clear getListOfVerifyContexts() #1483

@ronaldoguedess

Description

@ronaldoguedess

I've noticed that when a request can't be processed, it remains stored in the getListOfVerifyContexts() list, and there's no apparent way to clear it. This results in the list retaining records that should ideally be removed.

For example, in my case, the following contexts remain in the list and are never cleared:

[VerifyContext(id=1724284981409728, origin=https://malicious-app-verify-simulation.vercel.app, validation=VALID, verifyUrl=https://verify.walletconnect.org/, isScam=true), VerifyContext(id=1724286080110007, origin=https://malicious-app-verify-simulation.vercel.app, validation=VALID, verifyUrl=https://verify.walletconnect.org/, isScam=true)]

Questions:

  1. How can I clear this list?
  2. Why are these entries retained?
  3. Is this behavior intentional or a bug? Keeping these entries indefinitely seems unnecessary and could potentially lead to memory issues.

Reproduction Steps:

  1. Send a request of any type of transaction.
  2. Close the app suddenly while the modal is opened.
  3. Reopen the app and check the getListOfVerifyContexts() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions