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

recommend to return accounts in connect function returned by useConnector hook #11

Open
lance10030 opened this issue Jul 8, 2024 · 0 comments

Comments

@lance10030
Copy link

https://github.com/Particle-Network/particle-btc-connect/blob/main/packages/connectkit/src/hooks/useConnector.ts#L13

例如在okx中导入evm 钱包,导入的账户不支持btc 连接;上面这行代码 connector.requestAccounts() 没有返回值,connect 执行后也不会报错,但是连不上钱包,所以还是建议,connect 函数返回连接的账号,方便同步的确认是否连接成功

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

No branches or pull requests

1 participant