Mars icon indicating copy to clipboard operation
Mars copied to clipboard

Missing support for fixed-size arrays

Open alexdupre opened this issue 3 years ago • 1 comments

Running mars on a contract with a fixed-size array function parameter (e.g. address[2]) generates the following error:

Unknown type address[2]

Related code: https://github.com/TrueFiEng/Mars/blob/master/packages/mars/src/generate/generator.ts#L82-L107

alexdupre avatar Mar 31 '22 15:03 alexdupre

Thx for reporting this and details! Marking this bug as we do support dynamic-size arrays so fixed-size should be first-class citizen too.

marcin-trust avatar Apr 11 '22 09:04 marcin-trust