trufflesuite / drizzle

Reactive Ethereum dapp UI suite
906 stars 236 forks source link

How to change drizzle provider at runtime #107

Open devzl opened 3 years ago

devzl commented 3 years ago

After drizzle is initialized, how to change the web3 provider (and also have store data like accounts update to the newly selected provider's default account)?

Thanks!

kombos commented 3 years ago

I too require a solution for this. Cant believe drizzle library is so difficult to be implemented with a 'Connect' button where the drizzle library injects drizzle provider once a user clicks on connect button and either selects Metamask / Injected Providers or some other web3provider.