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

Does this library support ERC-20? #31

Open
remembermeLiu opened this issue Aug 2, 2019 · 2 comments
Open

Does this library support ERC-20? #31

remembermeLiu opened this issue Aug 2, 2019 · 2 comments

Comments

@remembermeLiu
Copy link

No description provided.

@ricmoo
Copy link
Member

ricmoo commented Aug 2, 2019

Absolutely. Just use the Contract object, and give it the ERC-20 ABI, along with your token address and a provider (or a signer, for managing the asset).

An ERC-20 token is just a normal contract, nothing special is required to interact with one. The utils.parseUnits and utils.formatUnits also make it easy to convert between user input to safe values and from safe values to display logic. :)

@ricmoo
Copy link
Member

ricmoo commented Aug 2, 2019

Oh! So sorry, I thought this was for the ethers.js library. I didn’t notice the repo you posted to.

This library does not easily handle ERC-20. Sorry. :s

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

2 participants