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

Issue with formatter while running web3.eth.getBlock in [email protected] #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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Addressing a bug Enhancement Includes improvements or optimizations
Projects
None yet
Development

No branches or pull requests

4 participants