Consensys / ethql

A GraphQL interface to Ethereum :fire:
Apache License 2.0
622 stars 85 forks source link

Get ERC20 contract decimals #114

Open wtzb opened 5 years ago

wtzb commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

@raulk Sure thing 👍