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

Issue with formatter while running web3.eth.getBlock in web3@1.0.0-beta.29 #1351

Closed
subhasisbanik opened this issue Feb 3, 2018 · 3 comments
Assignees
Labels
Bug Addressing a bug Enhancement Includes improvements or optimizations

Comments

@subhasisbanik
Copy link

In web3-core-helpers/src/formatters.js, line no. 220,
block.timestamp = utils.hexToNumber(block.timestamp);
the conversion from hex to Number throws an error, "Error in parsing....."
To fix this,
block.timestamp = utils.hexToNumberString(block.timestamp);

I think this change should be made into the repo.

@Freyert
Copy link
Contributor

Freyert commented Mar 22, 2018

@subhasisbanik are you running against JPMorgan's Quorum fork? Or does this happen against the main Ethereum chain?

@nivida
Copy link
Contributor

nivida commented Aug 9, 2018

@subhasisbanik feel free to submit an PR. :)

@nivida nivida self-assigned this Aug 9, 2018
@nivida nivida added Bug Addressing a bug Enhancement Includes improvements or optimizations labels Nov 29, 2018
@princesinha19
Copy link
Contributor

@nivida I tried to reproduce this bug. But, I think this problem is not with geth or ganache. This can be with Quorum.
You can close this ticket and can tag Duplicate of #1215.

@nivida nivida closed this as completed Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Addressing a bug Enhancement Includes improvements or optimizations
Projects
None yet
Development

No branches or pull requests

4 participants