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

don't call experimentalSuggestChain() if it's natively supported #475

Merged
merged 4 commits into from
Jun 18, 2024

Conversation

pyramation
Copy link
Collaborator

…eady. No need to register.

keplrExtensionInfo.supportedChains &&
keplrExtensionInfo.supportedChains.length
) {
if (keplrExtensionInfo.supportedChains.includes(chainInfo.name)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theothersideofgod make sure chainInfo.name is chain_name

) {
if (keplrExtensionInfo.supportedChains.includes(chainInfo.name)) {
console.warn(
`${chainInfo.name} is already added. No need to call experimentalSuggestChain()`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this after verifying that it works correctly @theothersideofgod

'osmosis',
'persistence',
'regen',
'secretnetwork',
Copy link
Collaborator Author

@pyramation pyramation Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add any one of these chains to test if it still works, then we've succeeded — using the useChains hook @theothersideofgod

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theothersideofgod

test

  1. checkout the branch of this PR, in the useChains example in the package
  2. a) add a chain like osmosis that is "supported"
  3. b) add a chain like noise that is not supported

both should work, and provide an address at least, with no errors from cosmos-kit

@pyramation pyramation changed the title don't call experiementalSuggestChain() if it's natively supported don't call experimentalSuggestChain() if it's natively supported Jun 18, 2024
@pyramation pyramation merged commit c9a1276 into main Jun 18, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants