Skip to content
This repository was archived by the owner on Sep 27, 2020. It is now read-only.
This repository was archived by the owner on Sep 27, 2020. It is now read-only.

Parses error with arrays with ABIEncoderV2 #88

Description

@kerzhner

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions