Skip to content

chore(circuits): remove assertMemberLength() on Tuple objects #2295

@jeanmon

Description

@jeanmon

Before we introduced a Tuple type for fixed-size array, we used to enforce the correct size of object members of type array using some calls to assertMemberLength() in the constructor.
In between, a lot of such arrays were migrated into Tuples.
Therefore, passing an array or a Tuple of the wrong size would be detected at compile-time and therefore the use of assertMemberLength() is not needed anymore.

One might argue that maintaining assertMemberLength() use would detect abuse of type casting like 'array as Tuple<>' though.

Metadata

Metadata

Assignees

Labels

C-protocol-circuitsComponent: Protocol circuits (kernel & rollup)

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions