-
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
Replace Buffer with uint8array #6004
Conversation
…-a-fork-that-has-ethers.js-removed
…-a-fork-that-has-ethers.js-removed
…-a-fork-that-has-ethers.js-removed
…-a-fork-that-has-ethers.js-removed
…-a-fork-that-has-ethers.js-removed
…-a-fork-that-has-ethers.js-removed
…-a-fork-that-has-ethers.js-removed
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com> Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
This is a breaking change but I think replacing buffer is the forward, we don't want to be reliant on polyfills so there isn't complications with browser apps. If we decide to move forward, since marin is going on vacation I can take over the PR or go to another team member. If we want browser apps to be working for next RC, we can merge #6005 for a temporary fix so users wont be facing browser issues. Then we can work on removing buffers completely. |
I would agree that the less config the end user has to do, the better If this replaces #6005, then we should copy over the removal of |
Yeah sorry about that, it was very old branch that I rebased on top of ethereumjs branch and the commits are a bit mangled. If you want to pursue this PR, I would suggest creating new branch out of 4.x and cherry-picking the last two commits onto the new branch |
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.
+1
Replacing buffer with uint8arry change in current time as we can include breaking changes and it will help end users for webpacking.
+1 we need to do this. I think we need to create an issue to finish these changes if we don't have it yet. |
Changes of this PR were merged via #6033 |
Description
Alternative to #6005
Replaces all usage of Buffer with Uint8Array.
Pros:
Cons:
Type of change
Checklist for 1.x:
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.Checklist for 4.x:
yarn
successfullyyarn lint
successfullyyarn build:web
successfullyyarn test:unit
successfullyyarn test:integration
successfullycompile:contracts
successfullyCHANGELOG.md
file in the packages I have edited.