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

Support for Arrays and Dictionaries in Playground V2 #649

Open
1 of 2 tasks
fotescodev opened this issue Apr 19, 2023 · 1 comment
Open
1 of 2 tasks

Support for Arrays and Dictionaries in Playground V2 #649

fotescodev opened this issue Apr 19, 2023 · 1 comment
Assignees

Comments

@fotescodev
Copy link
Contributor

fotescodev commented Apr 19, 2023

Tasks

Notes:

  • array of simple types is already supported, but user needs to type in array in single text input.
    • example: ["item one", "item two", "item three"]
@bthaile
Copy link
Contributor

bthaile commented Apr 19, 2023

Need UI design for how to handle Arrays and Dictionary Support.
It can be very complicated to convert

transaction(strings: [String])
...

need form where user can 1 or more values to an array.
Also need validation so that user doesn't put in numbers instead of strings. We could use current validation, just mentioning it.

Dictionary is much more complicated since Dictionary could be made up of complex types. So we'd have to restrict it to basic types.

transaction(keyValuePairs: {UInt64: String}) {
...

How would the input form look for a dictionary? and what if instead of String it was a String array?

There variations need to be designed out.

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