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

Have to click multiple times on Keplr modal to add a chain #347

Open
dillu24 opened this issue Oct 7, 2023 · 4 comments
Open

Have to click multiple times on Keplr modal to add a chain #347

dillu24 opened this issue Oct 7, 2023 · 4 comments
Assignees

Comments

@dillu24
Copy link

dillu24 commented Oct 7, 2023

Description

Let’s say I connect to Cosmos Hub Testnet and Osmosis Testnet using Cosmos kit. If I remove the Osmosis Testnet from Keplr and refresh my UI I expect that WalletClient.connect should trigger an addChain on my UI and hence Keplr asks me to add Osmosis Testnet to Keplr.

The Keplr modal is triggered successfully, however, I’d have to click multiple times on Approve to close it and I’d get “osmo-test-5 already added” errors in my console.

Note: This also happens if I use addChain directly.

Cosmos Kit version: Latest v1, but this also occurred on latest Cosmos Kit v2.

@dillu24
Copy link
Author

dillu24 commented Oct 20, 2023

Hey @twhy were you successful in trying to replicate this issue yet?

@twhy
Copy link
Contributor

twhy commented Oct 23, 2023

@dillu24 Have you tried use useChains hook ? https://docs.cosmoskit.com/hooks/use-chains
It would be better if you can provide a repo and reproduce steps.
Or make a small Loom https://www.loom.com/looms/videos video to show the issue.

@dillu24
Copy link
Author

dillu24 commented Oct 26, 2023

Hey @twhy . We have a slack channel with you guys, is it possible to message you there with more details? We got a channel with @liujun93 .

@twhy
Copy link
Contributor

twhy commented Oct 29, 2023

@dillu24 Yes. You can message us more details on this on Slack

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

2 participants