Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Fix buggy BlockHeader ts interface - #4452

Merged
Spacesai1or merged 3 commits into
web3:wyatt/1.x/fix-blockheader-typingfrom
karim-en:1.x
Nov 10, 2021
Merged

Fix buggy BlockHeader ts interface#4452
Spacesai1or merged 3 commits into
web3:wyatt/1.x/fix-blockheader-typingfrom
karim-en:1.x

Conversation

@karim-en

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

Copy link
Copy Markdown

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)

@nazarhussain nazarhussain left a comment

Copy link
Copy Markdown
Contributor

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

coveralls commented Oct 14, 2021

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@karim-en

karim-en commented Oct 21, 2021

Copy link
Copy Markdown
Author

@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
Copy Markdown
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

karim-en commented Nov 1, 2021

Copy link
Copy Markdown
Author

@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
@Spacesai1or
Spacesai1or changed the base branch from 1.x to wyatt/1.x/fix-blockheader-typing November 10, 2021 02:45
@Spacesai1or

Copy link
Copy Markdown
Contributor

Taking over PR to update CHANGELOG.md

@Spacesai1or
Spacesai1or merged commit 555c965 into web3:wyatt/1.x/fix-blockheader-typing Nov 10, 2021
Spacesai1or 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>
@Spacesai1or Spacesai1or mentioned this pull request Nov 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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