-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
Functions, Exception: ("Can't return type %s as part of tuple", <class 'vyper.types.types.ListType'>) #955
Comments
As long as it's a fixed size list this should be do-able yes. 👍 Tagging as a bug. |
@ehanoc could you please test this again, I believe this has been fixed with additional tuple work. |
@jacqueswww I wrote a couple small tests to check. The string vs bytes[] fixes the issues with string types. Although there could be an issue with int [] as part of the tuple.
Output:
Is this an issue? I might be missing something |
Thanks for testing, will have a look ;) |
Related to #1019. |
I'm working on a sample game to demonstrate some proof of concepts. Including, showing both versions of the contract (Solidity & Vyper) so i can show a comparison of building and usage.
What's your issue about?
I'm trying to convert a solidity contract into Vyper.
Can't seem to return the same bag of values.
For the following vyper function :
I get the following error when compiling the contract:
Exception: ("Can't return type %s as part of tuple", <class 'vyper.types.types.ListType'>)
Solidity Version :
How can it be fixed?
Can stmt.py::parse_return be improved to handle this? Maybe i can do do this myself and submit PR.
Extra related questions:
Unless i missed something in the docs... strings & dynamically sized mappings aren't a thing, right?
Cute Animal Picture
The text was updated successfully, but these errors were encountered: