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

Return an int from eth.chainId instead of hex #1387

Closed
kclowes opened this issue Jul 15, 2019 · 0 comments
Closed

Return an int from eth.chainId instead of hex #1387

kclowes opened this issue Jul 15, 2019 · 0 comments

Comments

@kclowes
Copy link
Collaborator

kclowes commented Jul 15, 2019

What was wrong?

The eth_chainId method is implemented, but currently it returns the hex-encoded ID. An int would be nicer.

How can it be fixed?

There is a to_integer_if_hex function that can be used in the middleware to format the result

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

No branches or pull requests

1 participant