-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[SOLVED] events.MyEvent broken since .52 #2714
Comments
Thanks for opening this issue! |
|
Thanks, I'll test it asap. |
Requesting to close this issue. After updating ganache to v.2.1 I cannot replicate this issue. |
Description
Subscribing to an event of a contract deployed to a ganache blockchain-client using events.EventName or events[eventSignature] throws an error. The syntax follows the example of the web3 docs (https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#id38).
Expected behavior
Executing this code should print the "successfully caught event" message multiple times to the console.
Actual behavior
Following error message is printed:
myContract.events.SomethingHappened is not a function
If I use events.AllEvents the command works as expected.
Steps to reproduce the behavior
let web3 = new Web3.providers.WebsocketProvider("ws://localhost:8545");
let myContract = new web3.eth.Contract(abi, address);
Error Logs
Versions
The text was updated successfully, but these errors were encountered: