Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@embark/whisper): ensure web3 is ready when whisper info is reque…
…sted In 1461e95 we've introduced a guard that ensures whisper isn't crashing when Embark is used with the Simulator. This unfortunately also introduced code that tries to connect to an existing websocket provider that isn't actually ready at the time it tries to connect. This commit ensures `web3.shh.getInfo()` is only called once `web3` is ready and therefore the WS connection as well.
- Loading branch information