Replies: 1 comment 1 reply
-
|
You can do this manually right now: const providers = store.getProviders()
const provider = providers.find(provider => provider.info.rdns === 'io.metamask' || 'io.metamask.mmi' || 'io.metamask.flask' || 'com.enkrypt') |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be nice to have the ability in
findProvidermethod:that would allow us to search for providers by "priority" or "conditionally".
I would suggest something like this:
This way the dapps would be able to pick their "preferred" provider which in some cases would be great to have. E.g. we are developing a MetaMask Snap and therefore our preferred wallet is MetaMask since others don't even support Snaps.
Thanks for reply!
Beta Was this translation helpful? Give feedback.
All reactions