Skip to content

Correctly calculate type size for indexed types #1036

Open

Description

@imikushin

Currently, for funcs the size is just a number of all of func's parameters and returned values + 1, and, for arrays it's just 2.

          This'll need to change because the "type size" query is intended to encapsulate the recursive size of the type, so it needs to be 1 plus the size of the payload of the array.

Originally posted by @alexcrichton in #1022 (comment)

We need to calculate size for all known user defined types: funds, arrays and structs.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions