Skip to content
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 ethereumjs-util with @ethereumjs/util #6283

Merged
merged 32 commits into from
Jul 25, 2023

Conversation

avkos
Copy link
Contributor

@avkos avkos commented Jul 13, 2023

Description

Fixes #6021

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run lint with success and extended the tests and types if necessary.
  • I ran npm run test:unit with success.
  • I ran npm run test:coverage and my test cases cover all the lines and branches of the added code.
  • I ran npm run build and tested dist/web3.min.js in a browser.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.
  • I have updated the CHANGELOG.md file in the root folder.
  • I have linked Issue(s) with this PR in "Linked Issues" menu.

@avkos avkos changed the title replace module Replace ethereumjs-util with @ethereumjs/util Jul 13, 2023
@github-actions
Copy link

github-actions bot commented Jul 14, 2023

Pull Request Test Coverage Report for Build 5656367750

  • 4 of 6 (66.67%) changed or added relevant lines in 2 files are covered.
  • 16 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 72.747%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/web3-eth-accounts/src/index.js 1 2 50.0%
packages/web3-utils/src/utils.js 3 4 75.0%
Files with Coverage Reduction New Missed Lines %
packages/web3-providers-http/lib/index.js 1 76.36%
packages/web3-utils/lib/utils.js 15 91.15%
Totals Coverage Status
Change from base Build 5545042776: -0.02%
Covered Lines: 3484
Relevant Lines: 4511

💛 - Coveralls

@@ -106,6 +106,7 @@
"bignumber.js": "^9.0.1",
"bn.js": "^5.2.1",
"browserify": "^16.5.2",
"browserify-zlib": "^0.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this lib is added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need this Polyfill otherwise build fails by error

@luu-alex
Copy link
Contributor

other than junaids comment lgtm

@@ -539,6 +539,7 @@ describe('transaction and message signing [ @E2E ]', function() {
});

it('eth.accounts.sign', async function(){
this.timeout(30000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird to require such a long timeout for a signing call

@avkos avkos requested a review from spacesailor24 July 18, 2023 02:08
@jdevcs
Copy link
Contributor

jdevcs commented Jul 18, 2023

@avkos , before merging tests should be passing:
Error: Returned error: The method personal_sign does not exist/is not available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants