Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watching events not reliable on a dev environment #2454

Closed
eloudsa opened this issue Oct 23, 2017 · 1 comment
Closed

Watching events not reliable on a dev environment #2454

eloudsa opened this issue Oct 23, 2017 · 1 comment

Comments

@eloudsa
Copy link

eloudsa commented Oct 23, 2017

Hello

I'm using Metamask in a development environment with the following tools:

  • Truffle v3.4.11 (core: 3.4.11)
  • Solidity v0.4.15 (solc-js)
  • testrpc v4.1.3
  • Metamask v3.11.2
  • network: localhost:8545
  • frontend app with webpack

The development process requires to migrate new versions of the contracts and/or to restart the node.

If we start from a clean situation, we are able to watch our events from our frontend application: fromBlock: 'latest', toBlock: 'latest'

But if we restart the testrpc node and redeploy our contracts, the events are not more watched through Metamask.

We have tried to switch networks or to lock and unlock Metamask without success.
The only way is to disable and re-enable the Metamask extension from Chrome.

You can imagine that this process slow down the development process

Did you notice this issue?
Is there another way to "reset" the state of Metamask without disabling and re-enabling the extension?
What do you think about adding a developer mode to Metamask to have access to some additional feature such as clearing its context/cache?

Thanks,

Said

@tmashuang
Copy link
Contributor

Duplicate of #2393

@tmashuang tmashuang marked this as a duplicate of #2393 Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants