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

Fix buggy BlockHeader ts interface #4452

Merged
merged 3 commits into from
Nov 10, 2021

Conversation

karim-en
Copy link

@karim-en karim-en commented Oct 11, 2021

Description

The name of the receiptRoot property is not correct and we should use receiptsRoot instead.

wiki:
https://eth.wiki/json-rpc/API#:~:text=of%20the%20block.-,receiptsRoot,-%3A

Related Issue

Resolve #4517
ethereum/go-ethereum#3084

Type of change

  • [+] Bug fix (non-breaking change which fixes an issue)

Copy link
Contributor

@nazarhussain nazarhussain left a comment

Choose a reason for hiding this comment

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

@karim-en Thanks for the contribution, I am running the CI jobs on this PR to see if something related is broken.

Meanwhile can you please look into these two tests and see if these are related to change.

https://github.com/ChainSafe/web3.js/blob/ab27807a6c2726331ba5ec1b3cef2b830f71264c/test/eth.subscribe.js#L32

https://github.com/ChainSafe/web3.js/blob/ab27807a6c2726331ba5ec1b3cef2b830f71264c/test/eth.subscribe.js#L51

I would also suggest that you create an a bug issue on web3 repo and then link your PR to that issue.

@coveralls
Copy link

coveralls commented Oct 14, 2021

Pull Request Test Coverage Report for Build 1408779542

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 72.534%

Totals Coverage Status
Change from base Build 1365049511: -0.01%
Covered Lines: 3359
Relevant Lines: 4372

💛 - Coveralls

@nazarhussain
Copy link
Contributor

@karim-en Did you get a chance to look into above message?

@karim-en
Copy link
Author

karim-en commented Oct 21, 2021

@karim-en Did you get a chance to look into above message?

Oh, thanks for bumping me, I missed your message, I am going to check that

@nazarhussain
Copy link
Contributor

@karim-en We look forward for your update on this PR so we can merge it.

@nazarhussain nazarhussain added the 1.x 1.0 related issues label Oct 28, 2021
@karim-en
Copy link
Author

karim-en commented Nov 1, 2021

@karim-en We look forward for your update on this PR so we can merge it.

Done. sorry for the delay.

@karim-en karim-en requested a review from nazarhussain November 3, 2021 22:26
@nazarhussain nazarhussain added the Review Needed Maintainer(s) need to review label Nov 4, 2021
@spacesailor24 spacesailor24 changed the base branch from 1.x to wyatt/1.x/fix-blockheader-typing November 10, 2021 02:45
@spacesailor24
Copy link
Contributor

Taking over PR to update CHANGELOG.md

@spacesailor24 spacesailor24 merged commit 555c965 into web3:wyatt/1.x/fix-blockheader-typing Nov 10, 2021
spacesailor24 added a commit that referenced this pull request Nov 10, 2021
* Fix buggy `BlockHeader` ts interface (#4452)

* Fix buggy `BlockHeader` ts interface

* Fix `receiptsRoot` property in the unit test

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>

* Update CHANGELOG

Co-authored-by: Karim <karimkaspersky@yahoo.com>
Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
@spacesailor24 spacesailor24 mentioned this pull request Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Review Needed Maintainer(s) need to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buggy BlockHeader interface
4 participants