Closed jafri closed 2 years ago
Table decorator doesn't support variable as table name currently, it always treats it as a string, whether or not within a pair of quotation marks. I think the transform should throw an error if the table name is not a string within a pair of quotation marks.
Is supporting variable resolution there difficult?
It is very useful to specify a variable there as you can ensure constants in a seperate file, having random strings all over your project is not good for maintability
Decorators don't support variables I think.
Transform is been called before compiling, it has no idea what a variable is.
Okay @learnforpractice, lets switch it to string only and throw error if isQuoted is false
Current resolution:
This will currently resolve to a table name of name123 in the ABI, but it should resolve to "name"