Skip to content
Discussion options

You must be logged in to vote

Some ERC20 tokens do not have the meta data functions, EIP20 says symbol() is optional, that's probably why your calls might be failing. Also for example MKR returns bytes32 instead of string memory (I guess this is because of how old Maker is, it was likely created before ERC20 spec was finalized). So you have to handle edge cases whenever you encounter a token that doesn't work in standard form.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@johndoe75
Comment options

@crazydevlegend
Comment options

Answer selected by zemse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants