Closed pseudobun closed 10 months ago
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')
I think it would be nice to have the ability in
findProvider
method: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!