Closed tayzlor closed 5 years ago
@tayzlor did you manage to do it?
So far I've determined that no, it's not currently possible.
The things in the way are:
uport-connect
uses web3 < 1.0. This will change when uport-connect releases v1.0.0.
drizzle
doesn't easily support constom providers, you can pretty easily hack that though.... window.web3 = { currentProvider: new Provider(...) };
uport-connect
's provider seems to be incompatible with drizzle. As best I can tell, drizzle expects either a websocket from ganache or metamask. You would need to get feature parity with probably metamask to make uport work. A uPort dev suggested that maybe using Metamask's provider engine and reimplementing their own provider would likely do the trick.
@tayzlor @barlock addressed this quite well. We do plan to more easily support custom providers in the future (especially relevant for hardware wallets), but uPort's in particular will need to upgrade to support websockets.
Is there an issue to track custom providers?
Can you use this in conjunction with uport? As uport injects its own web3 instance?