Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Get ERC20 contract decimals #114

Open
wtzb opened this issue Oct 29, 2018 · 2 comments
Open

Get ERC20 contract decimals #114

wtzb opened this issue Oct 29, 2018 · 2 comments

Comments

@wtzb
Copy link

wtzb commented Oct 29, 2018

It doesn't appear that EthQL is capable of retrieving the decimal field of ERC20 contracts. The decimal field is a default field in ERC20, just like symbol and totalSupply, which EthQL does support. Would this be possible to implement?

@raulk
Copy link
Contributor

raulk commented Oct 29, 2018

@wtzb sure! Would you mind sending a pull request? It should be pretty straightforward. You can see how the totalSupply field is implemented, and do something similar.

@wtzb
Copy link
Author

wtzb commented Oct 30, 2018

@raulk Sure thing 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants