Skip to content

Add test vector for that uses traits and associated types in a contract - #1598

Merged
leighmcculloch merged 3 commits into
mainfrom
add-associated-types-test
Oct 20, 2025
Merged

Add test vector for that uses traits and associated types in a contract#1598
leighmcculloch merged 3 commits into
mainfrom
add-associated-types-test

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Oct 17, 2025

Copy link
Copy Markdown
Member

What

Add test vector for trait associated types in contracts, demonstrating the pattern where a trait uses associated types to delegate to default implementations.

Why

The OpenZeppelin contract library uses this pattern, and having test vector that uses the pattern provides some visibility to how the generated code expands alongside associated types.

For #1544

@leighmcculloch
leighmcculloch marked this pull request as ready for review October 17, 2025 06:36
@leighmcculloch leighmcculloch mentioned this pull request Oct 17, 2025
8 tasks
@leighmcculloch
leighmcculloch requested a review from a team October 17, 2025 23:26
@leighmcculloch
leighmcculloch added this pull request to the merge queue Oct 20, 2025
Merged via the queue into main with commit 0a1c1c0 Oct 20, 2025
88 checks passed
@leighmcculloch
leighmcculloch deleted the add-associated-types-test branch October 20, 2025 21:19
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.

2 participants