Make compatible with web3 1.0
coopermaruyama opened this issue · 5 comments
coopermaruyama commented
Make compatible with web3 1.0
coopermaruyama commented
WIP is on branch web3-v1. Close to working, 1 failing test left
gtaschuk commented
Looked at that failing test. A cursory glance seems to indicate that state is being updated when it first mounts, but not subsequently with polling. If you do clock.tick(1000)
before the callCount is taken, then it doesn't seem like setState will be called in the 60 seconds thereafter.
KamuelaFranco commented
@coopermaruyama Is this now working?
coopermaruyama commented
@KamuelaFranco The last failing test is passing now. I haven't yet had a chance to test it in an web3 1.0 app yet though. Will do that ASAP. will be helpful if people can test. For now I'm going to publish on npm as a beta version
coopermaruyama commented
web3 1.0 branch published. Install with npm install react-web3@beta
.