-
Notifications
You must be signed in to change notification settings - Fork 130
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
Conversation
…eady. No need to register.
keplrExtensionInfo.supportedChains && | ||
keplrExtensionInfo.supportedChains.length | ||
) { | ||
if (keplrExtensionInfo.supportedChains.includes(chainInfo.name)) { |
There was a problem hiding this comment.
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()` |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test
- checkout the branch of this PR, in the
useChains
example in the package - a) add a chain like osmosis that is "supported"
- 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
…eady. No need to register.