hyperweb-io / hyperweb-io/cosmos-kit

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

Open
#347 4 comments 0 reactions 1 assignee Claimed by @twhy View on GitHub
Dominant language
TypeScript
Stars
201
Forks
159
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.