Skip to content

[Bug] 在某些特殊情况下,针对 wagmi 的 provider 连接的状态不准确 #1318

Open
@LCJove

Description

@LCJove

What happens?

目前我们的连接状态是通过是否有 address 来判断,但是在钱包锁定的情况下,address 依旧是可以取到的,但是和 connector 相关的 操作都会导致失败。

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

  1. 正常连接钱包
  2. 新起一个新的 tab,关闭之前的 tab
  3. 在新的 tab 页锁定钱包,这一步是为了模拟长时间不操作钱包,钱包自动锁定的机制
  4. 之后打开之前连接钱包的页面,此时会发现依旧是连接的状态,但是 disconnect 会失败

Context

  • Ant Design Web3 Version:
  • Node Version:
  • Platform:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdevelopment taskDevelopment tasks that can be completed within one day

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions