Skip to content

refactor: enforce defining supported types on metadata#2554

Merged
bobbinth merged 3 commits intonextfrom
igamigo-supp-types-metadata
Mar 5, 2026
Merged

refactor: enforce defining supported types on metadata#2554
bobbinth merged 3 commits intonextfrom
igamigo-supp-types-metadata

Conversation

@igamigo
Copy link
Collaborator

@igamigo igamigo commented Mar 5, 2026

Closes #1294

Enforces passing an iterator of AccountTypes when instantiating an AccountComponentMetadata instead of using a hardcoded default. Also adds a couple helpers to easily be able to iterate over all types (we could use something like enumiter but seemed overkill).

@igamigo igamigo marked this pull request as ready for review March 5, 2026 01:57
Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I think the AccountType helpers turn this into a very nicely usable API.

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@bobbinth bobbinth merged commit 8c2101c into next Mar 5, 2026
17 checks passed
@bobbinth bobbinth deleted the igamigo-supp-types-metadata branch March 5, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider making supported account type a parameter to the AccountComponent::compile

3 participants