ethql icon indicating copy to clipboard operation
ethql copied to clipboard

Get ERC20 contract decimals

Open wtzb opened this issue 7 years ago • 2 comments

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?

wtzb avatar Oct 29 '18 21:10 wtzb

@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.

raulk avatar Oct 29 '18 23:10 raulk

@raulk Sure thing 👍

wtzb avatar Oct 30 '18 20:10 wtzb