Etherscan always returns Vyper_contract for vyper contract types. However, sometimes it is a token contract and has a symbol() method. If that is the case, change the contract type name to the symbol name, as a trick to improve experience.
How I did it
How to verify it
Checklist
[ ] Passes all linting checks (pre-commit and CI jobs)
[ ] New test cases have been added and are passing
[ ] Documentation has been updated
[ ] PR title follows Conventional Commit standard (will be automatically included in the changelog)
What I did
Etherscan always returns
Vyper_contract
for vyper contract types. However, sometimes it is a token contract and has asymbol()
method. If that is the case, change the contract type name to the symbol name, as a trick to improve experience.How I did it
How to verify it
Checklist