vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.87k stars 799 forks source link

Array of string not supported #2136

Open saikat041 opened 4 years ago

saikat041 commented 4 years ago

What's your issue about?

def __init__():
    arr: String[10][1] = ["vyper"]

Compiling above code gives the following error:

vyper.exceptions.StructureException: Multidimensional String arrays are not supported
  contract "try1.vy", function "__init__", line 3:9 
       2 def __init__():
  ---> 3     arr: String[10][1] = ["vyper"]
  ----------------^
       4

Is vyper going to support string array in the future? Is there any other way to use array of string?

fubuloubu commented 4 years ago

Not at this time, no