-
Notifications
You must be signed in to change notification settings - Fork 129
Handling Metamask's lack of websocket support/Web3 1.0 #10
Comments
Same error as above for me 👍 |
Same for me! |
The same result using the same environment, but if I disable metamask... I get.. EDIT: That problem was caused because I did not have the latest (beta) version of ganache-cli (see my next comment). Let me know if I should open a new issue or need something else. And... congrats! The project looks amazing! |
Ah. I'm using the Ganache App (1.0.2). I guess I need to switch over to the CLI and wait for the app to be updated. Thanks. I'm going to test this out tonight to be sure and then likely close the issue. |
Oh sorry, I just tried to say the ws problem, which only happens if you disable Metamask, was solved after updating the ganache-cli to the beta version, but the error you reported, using Metamask, is still there. We have to wait until Metamask is updated. In other words, this issue makes sense 👍 |
I'm working on an app using ws with drizzle to load data and metamask to process the transactions. So it is possible, although it's quite messy. |
So seems like Drizzle is mostly unusable right now as MetaMask is the main way to interact with Dapps? |
Would it be possible to use Infura for websockets and MetaMask for everything else? I see Infura recently added WS support: |
@elie222 yes, i have done that as a solution. you need to keep track of two different web3 instance. it is a hacky solution that works for now |
Would be nice if you could post what you did as an example.
The web3 instance you pass to Drizzle is the infura one I take it? And then
separately you do txs with metamask? Doesn't Drizzle also expect txs to be
done through it too though?
…On 6 Mar 2018 23:30, "David Kajpust" ***@***.***> wrote:
@elie222 <https://github.com/elie222> yes, i have done that as a
solution. you need to keep track of two different web3 instance. it is a
hacky solution that works for now
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<trufflesuite/drizzle#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC8oX1wTO4MKpVG0OC2UctWE5PzwAX3Vks5tbwABgaJpZM4SOmH9>
.
|
@cooper-sloan && @davekaj I'm very interested in seeing what methods you've come up with in managing multiple web3 instances to use drizzle with MetaMask. I've also been investigating this and would love to see what other solutions people have come up. |
If anyone could write up a quick tutorial on the workaround for using Drizzle with metamask that would be a HUGE help to the community :) |
damn, sorry was not paying enough attention, i have not done this with drizzle. i only did it with a normal react project |
I got it working with Metamask — using infura rpc for websocket updates and metamask for accounts and transactions: https://github.com/relevant-community/drizzle/blob/master/src/Drizzle.js It's building on PR #15 but also storing the Metamask instance of web3 and using it for drizzle contract calls. Beware my fork has some braking changes in the |
Right off the bat I've got to apologize for not hopping in this conversation earlier! Today, Drizzle supports MetaMask via a fallback to their very own Hope you'll all give it another shot if you haven't already. 🙂 |
First of all. This looks super amazing! Thank you!
Using this with Metamask results in
Error: The current provider doesn't support subscriptions: MetamaskInpageProvider
metamask-extension/2601 & metamask-extension/2350Does this mean that the subscription parts of Drizzle can't be used with Metamask at the moment?
edit: Note I'm using the drizzle truffle box with Ganache
The text was updated successfully, but these errors were encountered: