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

fix: array of structs or tuples when only 1 element would be weird #1900

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Jan 31, 2024

What I did

fixes a bug from Discord when if you have a func return an array of a single struct, it would be all funky and not at all like if 2 structs for example.

Also fixes the issue where arrays of structs were tuples unlike arrays of addresses or other types, which were lists. now arrays are always lists.

How I did it

Squeeze in some handling without breaking anything.

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey merged commit 52f431b into ApeWorX:main Jan 31, 2024
16 checks passed
@antazoey antazoey deleted the fix/array-tuple-mixups branch January 31, 2024 22:29
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.

2 participants