-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(solana): injected connectors not detected #2656
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@glitch-txs I'd like to get your thoughts on this. I'm still not quite clear if it's an issue on the Wallet Standard. I'll double check their source code and might open an issue on their repo to ask to WS team. |
@@ -25,6 +25,8 @@ export function watchStandard(callback: (arg: StandardWalletAdapter[]) => void) | |||
}) | |||
] | |||
|
|||
callback(standardAdapters) |
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.
is this a default?
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.
While setting the event listeners, this allow us to trigger the callback with initial data of available wallets.
is this a default?
Not sure what you mean, but the Wallet Standard don't have this or idk why they don't trigger at once if MM is disabled. Asked here
Description
Wallet Standard's
on
listener is not getting triggered when MM is disabled but other extensions like Trust or Phantom is enabled. This causing an issue that the none of the injected wallets are getting visible in connector list if MM is not installed or disabled.This PR introduces a slight changes to the
watchStandard
method to make sure it's passing the available options to it'scallback
parameter.Also adding a tests that checks the MM option in the injected connectors list.
While this resolving the issue, like to double checking the issue with the Wallet Standard team here: wallet-standard/wallet-standard#109
Type of change
Associated Issues
For Linear issues: Closes APKT-845
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist