-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Stop waiting after transactionBlockTimeout
#5294
Stop waiting after transactionBlockTimeout
#5294
Conversation
(this is a draft code that needs to be finished after, or along with: #5293)
Your Render PR Server URL is https://web3js-docs-pr-5294.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-cbhd26uhb05sparsh130. |
…ttps://github.com/ChainSafe/web3.js into fix/5293/interrupt-waiting-for-node-after-timeout
+ tiny code cleaning
+ and increase `transactionPollingTimeout` to 2000
…ting-for-node-after-timeout
+ revert CHANGELOG.md white spaces change
…ttps://github.com/ChainSafe/web3.js into fix/5293/interrupt-waiting-for-node-after-timeout
LGTM, just a small comment. overall great work |
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.
LGTM, just minor changes suggested.
Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>
…' of https://github.com/ChainSafe/web3.js into feature/5113/stop-waiting-after-transactionBlockTimeout
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.
Approved, before merging check that all tests are passing in CI.
Good work.
…ing-after-transactionBlockTimeout
+ and switch the location and change the names of 2 error classes
…ing-after-transactionBlockTimeout
…ing-after-transactionBlockTimeout
+ code cleaning and adding comments
Implements #5113
Also, refactored the code at
waitForTransactionReceipt
and a few other enhancements.And added 3 reusable utility functions at web3-utils:
pollTillDefined
,rejectIfTimeout
andrejectIfConditionAtInterval
. Which are useful when dealing with promises that involve polling, rejecting after a timeout, or rejecting if a condition was met when calling repeatably at every time intervals.Description
Please include a summary of the changes and be sure to follow our Contribution Guidelines.
Type of change
Checklist:
npm run dtslint
with success and extended the tests and types if necessary.npm run test:cov
and my test cases cover all the lines and branches of the added code.npm run build
with success.dist/web3.min.js
in a browser.CHANGELOG.md
file in the root folder.