Skip to content

fix/enhancement: added bytes32 name/symbol support in get_token() #191

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

Merged
merged 4 commits into from
Oct 28, 2021

Conversation

liquid-8
Copy link
Member

@liquid-8 liquid-8 commented Oct 27, 2021

Closes #173

get_token() call should be
get_token("0x431ad2ff6a9c365805ebad47ee021148d6f7dbe0", "erc20b32")

for tokens that have name and symbol as bytes32 and for the rest call remains the same
get_token("0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2")

erc20b32.abi contains ABI for tokens that has both properties as bytes32. If there is a token with string+b32 or vice versa then all you need is create proper ABI for that and pass this ABI to get_token().

@liquid-8
Copy link
Member Author

@ErikBjare ^^

@ErikBjare
Copy link
Member

Veeery nice, thanks!

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

Successfully merging this pull request may close these issues.

Invalid Token Address using get_token()
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy