We are seeing a parse error with valid solidity when decoding an array of structs. If Imported.Item is a struct, the following errors:
bytes memory itemBytes;
Imported.Item[] memory items = abi.decode(itemBytes, (Imported.Item[]));
The error is ParserError: missing ';' at...
There is no error with non-array decoding (even though below is not valid solidity):
bytes memory itemBytes;
Imported.Item[] memory items = abi.decode(itemBytes, (Imported.Item));
We are using version 0.4.11 via the prettier-plugin-solidity package.
We are seeing a parse error with valid solidity when decoding an array of structs. If
Imported.Itemis a struct, the following errors:The error is
ParserError: missing ';' at...There is no error with non-array decoding (even though below is not valid solidity):
We are using version 0.4.11 via the
prettier-plugin-soliditypackage.