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

validate token is actually a token #10472

Open
kumavis opened this issue Feb 18, 2021 · 0 comments
Open

validate token is actually a token #10472

kumavis opened this issue Feb 18, 2021 · 0 comments

Comments

@kumavis
Copy link
Member

kumavis commented Feb 18, 2021

here is a user who was confused when they tried to add a token that was not the right contract address #10415

theres a couple ways we could attempt to validate

  • inspect bytecode for entrypoints (not too hard but doesnt work for proxies and could break with compiler changes or alt langs)
  • do a call to a read-only method on the spec. if it fails, dont add it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@kumavis @Gudahtt and others