-
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
Update helpers.js #4613
Update helpers.js #4613
Conversation
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.
Code
@Jack-Works Thanks for the contribution. I would suggest to create an issue on the repo mentioning what was the issue intended to fix and then link it to this PR. Also add entry to Assigning some reviewers to get approvals, as soon you make above changes and PR looks good will be able to include in upcoming release. |
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.
For reference for others attaching some docs describing historical changes which brought globalThis
👀 Maybe don't merge yet. I want to review the whole repo to search for all window usages. FIY I'm trying to running web3.js in Web Workers |
Pull Request Test Coverage Report for Build 1575924982
💛 - Coveralls |
Hi! I have searched in the repo and removed all usage to |
thank you for opening this PR, if possible can you update the |
Done! |
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.
@Jack-Works The integration tests on windows are failing for your PR. Can you please debug those further.
Hmm sorry, but I didn't change any platform-aware code. I have no idea why it is happening. It looks like a network problem on the CI machine, so I guess re-run the test might resolve the problem? |
@Jack-Works The failing tests don't seem to be related to changes. The failing |
Okay so FYI for everyone, I merged this PR into a branch I just created and opened PR #4671, and the Windows test is no longer failing. I don't have an answer as to why this works, but we used this to solve the same issue previously |
Oh, I know why. The Infura key is not accessible when the PR is triggered by a non-contributor (me). Because leaking a secret environment variable is a security violation. |
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:unit
with success.npm run test:cov
and my test cases cover all the lines and branches of the added code.npm run build
and testeddist/web3.min.js
in a browser.CHANGELOG.md
file in the root folder.