-
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
calling contract.method.send() only triggers .on('transactionHash') #2680
Comments
Could you please update to the latest version and adding the console log output to the issue?:) |
Updated to the latest version, and now it does in fact trigger all 3 events properly, although it doesn't enter the .then() part. I updated the Issue to reflect this and added the console log ouput. |
@nivida
in order to test this scenario, use a http provider and do not set this will cause web3 to never emit on receipt and only one on confirmation. Also, I noticed the following you only check |
How hard is it to open a PR with a failing test for this? Is there not setup for this? |
Description
When calling Contract.methods.myMethod.send() the event emitter only triggers .on('transactionHash') never .on('receipt) nor .on('confirmation')
edit: It works as intended in beta.52
Expected behavior
the emitter should be triggered on all 3 events.
Actual behavior
only triggers .on('transactionHash')
Steps to reproduce the behavior
1.setup web3 using Metamask provider + Ganache GUI (localhost)
edit: after updating to beta.52 it prints all events, but doesn't enter the .then() part
Error Logs
None.
Versions
The text was updated successfully, but these errors were encountered: