Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Convert function takes string instead of type for conversion to #1026
What's your issue about?
If you forget to add quotes to the type you want to convert to, Vyper will give an unhelpful error:
convert(some_int128, uint256) # raises: # AttributeError: 'Name' object has no attribute 's'
How can it be fixed?
So, catching this error might work out to fix this issue, but I think the underlying issue is that the second argument (
I would suggest turning this into a VIP to modify the syntax of convert such that a valid typename is supplied as the second argument
Cute Animal Picture