-
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
receipt is missing on error event #3129
Conversation
@cgewecke We have to add the error cases in the |
Co-Authored-By: cgewecke <christophergewecke@gmail.com>
Co-Authored-By: cgewecke <christophergewecke@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Perhaps we should open an issue considering the suggestion in this comment, about restoring a generic emitter for any receipt, regardless of status.
Co-Authored-By: cgewecke <christophergewecke@gmail.com>
* receipt added for error event listener on sending of a transaction * packages updated in package-lock because of security warnings from npm * passing of parameters to _fireError updated in Method object of the web3-core-method module * CHANGELOG.md updated * documentation for sendTransaction and contract.methods.myMethod.send() updated * Update packages/web3-core-method/src/index.js Co-Authored-By: cgewecke <christophergewecke@gmail.com> * Update docs/web3-eth.rst Co-Authored-By: cgewecke <christophergewecke@gmail.com> * wrongly passed parameters for the _fireError function fixed * Update docs/web3-eth-contract.rst Co-Authored-By: cgewecke <christophergewecke@gmail.com>
Fixes #1859 with adding of the receipt to the returned values of the error event listener. The receipt will get returned if not enough gas was provided or the EVM is reverting the transaction on other contract-specific reasons.